idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,809,579
protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("GROUP", 0, typeFactory.createSqlType(SqlTypeName.BIGINT)));<NEW_LINE>columns.add(new Rel...
createSqlType(SqlTypeName.VARCHAR)));
838,292
public void endVisit(ClassInstanceCreation node) {<NEW_LINE>ExecutableElement element = node.getExecutableElement();<NEW_LINE>TypeElement type = ElementUtil.getDeclaringClass(element);<NEW_LINE>FunctionElement funcElement = newAllocatingConstructorElement(element);<NEW_LINE>FunctionInvocation invocation = new FunctionI...
Expression outerExpr = node.getExpression();
1,213,696
@Produces({ MediaType.APPLICATION_JSON, SmileMediaTypes.APPLICATION_JACKSON_SMILE })<NEW_LINE>@Consumes({ MediaType.APPLICATION_JSON, SmileMediaTypes.APPLICATION_JACKSON_SMILE })<NEW_LINE>public // used only to get request content-type<NEW_LINE>Response // used only to get request content-type<NEW_LINE>serviceAnnouncem...
LOG.error(e, "Exception in handling updates request");
1,582,029
public static String durationOf(long time) {<NEW_LINE>// this returns something like 15 days 15 hours 24 minutes 26 seconds<NEW_LINE>String result = DurationFormatUtils.formatDurationWords(time, true, true);<NEW_LINE>// if it starts with a large number of days, we can do a little better<NEW_LINE>String[] parts = result...
= (days % 365) / 30;
1,820,225
public void delete(String username, String userId) {<NEW_LINE>EntityManager em = ThreadLocalContext.get().getEntityManager();<NEW_LINE>// Get the user<NEW_LINE>Query q = em.createQuery("select u from User u where u.username = :username and u.deleteDate is null");<NEW_LINE>q.setParameter("username", username);<NEW_LINE>...
"userId", userDb.getId());
1,762,516
public void handleCommand(AppCommand command) {<NEW_LINE>if (command instanceof PersistWorkspace) {<NEW_LINE>persistWorkspace(((PersistWorkspace<MASK><NEW_LINE>} else if (command instanceof LoadWorkspace) {<NEW_LINE>persistWorkspace(workspaceController.getActiveWorkspace());<NEW_LINE>loadWorkspace(((LoadWorkspace) comm...
) command).getWorkspace());
1,503,033
private void readPanels() {<NEW_LINE>Lookup lookup = Lookups.forPath(tabFolder);<NEW_LINE>options = lookup.lookup(new Lookup.Template<AdvancedOption>(AdvancedOption.class));<NEW_LINE>tabTitle2controller = new <MASK><NEW_LINE>id2tabTitle = new HashMap<String, String>();<NEW_LINE>synchronized (tabTitle2Option) {<NEW_LINE...
HashMap<String, OptionsPanelController>();
1,129,900
public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) {<NEW_LINE>Timber.i("Adding account with type " + accountType + " and auth token " + authTokenType);<NEW_LINE>final Bundle bundle = new Bundle();<NEW_LINE>AccountManager a...
e(e, "Failed to validate account type %s", accountType);
961,640
final DeleteEnvironmentResult executeDeleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEnvironmentRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteEnvironmentReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
823,947
protected long lookupImpl(long nativeContext, long library, String name) {<NEW_LINE>// clear previous error<NEW_LINE>Dlfcn.dlerror();<NEW_LINE>PlatformNativeLibrarySupport nativeLibrarySupport = PlatformNativeLibrarySupport.singleton();<NEW_LINE>PointerBase ret;<NEW_LINE>if (library == 0) {<NEW_LINE>ret = nativeLibrary...
.pointer(library), name);
1,091,564
private HostAndPort initSentinels(Set<HostAndPort> sentinels, final String masterName) {<NEW_LINE>HostAndPort master = null;<NEW_LINE>boolean sentinelAvailable = false;<NEW_LINE>LOG.info("Trying to find master from available Sentinels...");<NEW_LINE>for (HostAndPort sentinel : sentinels) {<NEW_LINE>LOG.debug("Connectin...
masterAddr = jedis.sentinelGetMasterAddrByName(masterName);
1,698,428
private void initialize() {<NEW_LINE>addListener(new InputListener() {<NEW_LINE><NEW_LINE>int draggingPointer = -1;<NEW_LINE><NEW_LINE>public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {<NEW_LINE>if (draggingPointer != -1)<NEW_LINE>return false;<NEW_LINE>if (pointer == 0 && button !=...
handleBounds.x, handleBounds.y);
662,218
// static jobjectArray NativeGetResourceStringArray(JNIEnv* env, jclass /*clazz*/, jlong ptr,<NEW_LINE>// jint resid) {<NEW_LINE>@Implementation(minSdk = P)<NEW_LINE>@Nullable<NEW_LINE>protected static String[] nativeGetResourceStringArray(long ptr, @ArrayRes int resid) {<NEW_LINE>CppAssetManager2 assetmanager = AssetM...
= new Ref<>(0);
1,815,241
void updateNodeColors() {<NEW_LINE>// Set the colors, if we can<NEW_LINE>if (series.getNode() != null && (colorStroke != null || colorFill != null)) {<NEW_LINE>try {<NEW_LINE>Group group = (Group) series.getNode();<NEW_LINE>Path seriesLine = (Path) group.<MASK><NEW_LINE>Path fillPath = (Path) group.getChildren().get(0)...
getChildren().get(1);
905,149
public void run(RegressionEnvironment env) {<NEW_LINE>// use 2-digit hour, see https://bugs.openjdk.java.net/browse/JDK-8066806<NEW_LINE>String startTime = "2002-05-30T09:01:02.003";<NEW_LINE>env.advanceTime(DateTime.parseDefaultMSec(startTime));<NEW_LINE>String[] <MASK><NEW_LINE>String eplFragment = "@name('s0') selec...
fields = "valmoh,valmoy,valdom,valdow,valdoy,valera,valhod,valmos,valsom,valwye,valyea,val1,val2,val3,val4,val5".split(",");
1,787,387
private static Object toJavaArrayInternal(final Ruby runtime, final Class<?> type, final RubyArray fromArray) {<NEW_LINE>final Object newArray = Array.newInstance(type, fromArray.size());<NEW_LINE>if (type.isArray()) {<NEW_LINE>// if it's an array of arrays, recurse with the component type<NEW_LINE>for (int i = 0; i < ...
nestedArray = element.toJava(type);
705,068
private void zkCluster(String clusterAlias) {<NEW_LINE>List<KpiInfo> <MASK><NEW_LINE>String zkList = SystemConfigUtils.getProperty(clusterAlias + ".zk.list");<NEW_LINE>String[] zks = zkList.split(",");<NEW_LINE>for (String kpi : ZK_KPIS) {<NEW_LINE>KpiInfo kpiInfo = new KpiInfo();<NEW_LINE>kpiInfo.setCluster(clusterAli...
list = new ArrayList<>();
298,447
public Mono<ServiceBusMessageBatch> createMessageBatch(CreateMessageBatchOptions options) {<NEW_LINE>if (isDisposed.get()) {<NEW_LINE>return monoError(LOGGER, new IllegalStateException(String.format(INVALID_OPERATION_DISPOSED_SENDER, "createMessageBatch")));<NEW_LINE>}<NEW_LINE>if (Objects.isNull(options)) {<NEW_LINE>r...
= size > 0 ? size : MAX_MESSAGE_LENGTH_BYTES;
575,495
public Object visitTuple(Tuple node) throws Exception {<NEW_LINE>if (node.getInternalCtx() == expr_contextType.Store) {<NEW_LINE>return seqSet(node.getInternalElts());<NEW_LINE>}<NEW_LINE>if (node.getInternalCtx() == expr_contextType.Del) {<NEW_LINE>return <MASK><NEW_LINE>}<NEW_LINE>if (my_scope.generator) {<NEW_LINE>i...
seqDel(node.getInternalElts());
909,260
public static void printThreadInfo(PrintWriter stream, String title) {<NEW_LINE>final int stackDepth = 20;<NEW_LINE>boolean contention = threadBean.isThreadContentionMonitoringEnabled();<NEW_LINE>long[] threadIds = threadBean.getAllThreadIds();<NEW_LINE>stream.println("Process Thread Dump: " + title);<NEW_LINE>stream.p...
.getThreadName()) + ":");
331,957
public ValueHandler createKeyValueHandler(Object keys) {<NEW_LINE>if (keys == null) {<NEW_LINE>throw new ClusterJUserException(local.message("ERR_Key_Must_Not_Be_Null", getName(), "unknown"));<NEW_LINE>}<NEW_LINE>Object[] keyValues = new Object[numberOfFields];<NEW_LINE>// check the cardinality of the keys with the num...
int index = fmd.getFieldNumber();
382,104
private static int parseInt(String string, int offset, int minValue, int radix, boolean negative) throws NumberFormatException {<NEW_LINE>// Note that we are accumulating result as negative values to handle edge case around MIN_VALUE.<NEW_LINE>int result = 0;<NEW_LINE>int maxDivByRadix = minValue / radix;<NEW_LINE>int ...
int next = result * radix - digit;
1,327,223
final DescribeAcceleratorAttributesResult executeDescribeAcceleratorAttributes(DescribeAcceleratorAttributesRequest describeAcceleratorAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAcceleratorAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,705,815
public void apply(Project project) {<NEW_LINE>project.getPlugins().apply(JavaLibraryPlugin.class);<NEW_LINE>project.getPlugins().apply(MavenPublishPlugin.class);<NEW_LINE>project.getPlugins(<MASK><NEW_LINE>project.getPlugins().apply(MavenRepositoryPlugin.class);<NEW_LINE>project.getPlugins().apply(IntegrationTestPlugin...
).apply(DeployedPlugin.class);
151,880
public Pair<Boolean, byte[]> execute(byte[] data) {<NEW_LINE>if (data == null) {<NEW_LINE>return Pair.of(true, EMPTY_BYTE_ARRAY);<NEW_LINE>}<NEW_LINE>int baseLen = parseLen(data, 0);<NEW_LINE>int expLen = parseLen(data, 1);<NEW_LINE>int modLen = parseLen(data, 2);<NEW_LINE>BigInteger base = parseArg(data, ARGS_OFFSET, ...
Pair.of(true, EMPTY_BYTE_ARRAY);
1,755,513
private void forwardEvents(List<Response.ResponseListener> listeners, Response response) {<NEW_LINE>notifyBegin(listeners, response);<NEW_LINE>Iterator<HttpField> iterator = response.getHeaders().iterator();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE><MASK><NEW_LINE>if (!notifyHeader(listeners, response, field))<NE...
HttpField field = iterator.next();
1,765,069
// generate K replicated bitmasks for one node<NEW_LINE>public String generate_bitmask(int number_node, int K) {<NEW_LINE>int i;<NEW_LINE>int size_bitmask = (int) Math.ceil(Math.log(number_node) / Math.log(2));<NEW_LINE>// v is the initial prefix for every vector. i means 'incomplete'<NEW_LINE>String bitmask = "vi0:0:1...
.create_random_bm(number_node, size_bitmask));
832,217
public int receiveMessagesPlain(long timeout) {<NEW_LINE>VerifiableClient consumer = new VerifiableClient.VerifiableClientBuilder().withClientType(CLI_KAFKA_VERIFIABLE_CONSUMER).withUsingPodName(podName).withPodNamespace(namespaceName).withMaxMessages(messageCount).withKafkaUsername(completeKafkaUsername).withBootstrap...
getMessages().toString());
495,377
public void xmlWriteOn(FormattedWriter writer) throws IOException {<NEW_LINE>DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd @ HH:mm:ss.SSS");<NEW_LINE>String timeNow = dateFormat.format(new Date());<NEW_LINE>writer.newLine();<NEW_LINE>writer.startTag(XML_CACHE_LOADER);<NEW_LINE>writer.indent();<NEW_LINE>write...
(new Date(loaderStopTime)));
1,840,876
public void saveWorkflowActionClassParameter(WorkflowActionClassParameter param) throws DotDataException, AlreadyExistException {<NEW_LINE>boolean isNew = true;<NEW_LINE>if (UtilMethods.isSet(param.getId())) {<NEW_LINE>try {<NEW_LINE>final WorkflowActionClassParameter test = this.findActionClassParameter(param.getId())...
addParam(param.getKey());
8,831
final CreateCertificateAuthorityResult executeCreateCertificateAuthority(CreateCertificateAuthorityRequest createCertificateAuthorityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCertificateAuthorityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateCertificateAuthority");
518,044
public void process(Operator operator, List<COSBase> operands) throws IOException {<NEW_LINE>if (operands.isEmpty()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>COSBase base0 = operands.get(0);<NEW_LINE>if (!(base0 instanceof COSName)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>COSName objectName = (COSName) base0;<NEW_LINE>PDXO...
throw new MissingOperandException(operator, operands);
1,003,119
private ColumnAnalysis analyzeStringColumn(final ColumnCapabilities capabilities, final ColumnHolder columnHolder) {<NEW_LINE>Comparable min = null;<NEW_LINE>Comparable max = null;<NEW_LINE>long size = 0;<NEW_LINE>final int cardinality;<NEW_LINE>if (capabilities.hasBitmapIndexes()) {<NEW_LINE>final BitmapIndex bitmapIn...
= (DictionaryEncodedColumn<String>) column;
106,973
public KrollDict generateScrollPayload() {<NEW_LINE>final KrollDict payload = new KrollDict();<NEW_LINE>final LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();<NEW_LINE>// Obtain index for first visible row.<NEW_LINE>final View firstVisibleView = layoutManager.findViewByPosition...
TableViewHolder) recyclerView.getChildViewHolder(firstVisibleView);
1,611,851
public double evaluateLeftToRight(InstanceList testing, int numParticles, boolean usingResampling, PrintStream docProbabilityStream) {<NEW_LINE>double logNumParticles = Math.log(numParticles);<NEW_LINE>double totalLogLikelihood = 0;<NEW_LINE>for (Instance instance : testing) {<NEW_LINE>FeatureSequence tokenSequence = (...
] = leftToRight(tokenSequence, usingResampling);
176,053
public final // d623673.1<NEW_LINE>// d623673.1<NEW_LINE>BeanO // d623673.1<NEW_LINE>create(// d623673.1<NEW_LINE>EJSContainer c, // d623673.1<NEW_LINE>EJSHome h, boolean reactivate) throws RemoteException, InvocationTargetException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if ...
"create: " + beanO + ", success=" + success);
1,526,555
public static GetMetaTableColumnResponse unmarshall(GetMetaTableColumnResponse getMetaTableColumnResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMetaTableColumnResponse.setRequestId(_ctx.stringValue("GetMetaTableColumnResponse.RequestId"));<NEW_LINE>getMetaTableColumnResponse.setHttpStatusCode(_ctx.integerValue("GetM...
("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].Comment"));
1,807,691
private void ajaxAddPermission(final Project project, final HashMap<String, Object> ret, final HttpServletRequest req, final User user) throws ServletException {<NEW_LINE>final String name = getParam(req, "name");<NEW_LINE>final boolean group = Boolean.parseBoolean(getParam(req, "group"));<NEW_LINE>if (group) {<NEW_LIN...
ERROR_PARAM, e.getMessage());
1,410,371
public void Output(IFragment<Long, Long, Long, Double> frag) {<NEW_LINE>String prefix = "/tmp/pagerank_parallel_output";<NEW_LINE>logger.info("sum double " + sumDoubleTime / 10e9 + " swap time " + swapTime / 10e9);<NEW_LINE>String filePath = prefix + "_frag_" + String.valueOf(frag.fid());<NEW_LINE>try {<NEW_LINE>FileWr...
> cur = FFITypeFactoryhelper.newVertexLong();
1,331,797
public void createPartControl(Composite parent) {<NEW_LINE>pageControl = new EditorPageControl(parent, SWT.SHEET);<NEW_LINE>boolean hasCompiler = getCompileCommandId() != null;<NEW_LINE>if (hasCompiler) {<NEW_LINE>editorSash = new SashForm(pageControl.createContentContainer(), SWT.VERTICAL | SWT.SMOOTH);<NEW_LINE>super...
editorSash.setWeights(70, 30);
1,579,628
public ProcessStatus preProcessCheck(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException, ServletException {<NEW_LINE>final PwmSession pwmSession = pwmRequest.getPwmSession();<NEW_LINE>final PwmDomain pwmDomain = pwmRequest.getPwmDomain();<NEW_LINE>final DomainConfig config = pwmDomain.getConfig(...
action = this.readProcessAction(pwmRequest);
440,221
private String buildMessage(List<AlertRecord> alertRecordList) {<NEW_LINE>AlertRecord firstRecord = alertRecordList.get(0);<NEW_LINE>StringBuffer message = new StringBuffer();<NEW_LINE>message.append("Group Name: ").append(firstRecord.getGroupName()).append(NEW_LINE).append("Cluster Name: ").append(firstRecord.getClust...
()).append(NEW_LINE);
1,765,348
private CoreLabel makeXmlToken(String tokenText, boolean doNormalization, int charOffsetBegin, int charOffsetEnd) {<NEW_LINE>CoreLabel token = new CoreLabel();<NEW_LINE>token.setOriginalText(tokenText);<NEW_LINE>if (separatorPattern.matcher(tokenText).matches()) {<NEW_LINE>// Map to CoreNLP newline token<NEW_LINE>token...
"Adding token " + token.toShorterString());
1,794,950
protected void rdataFromString(Tokenizer st, Name origin) throws IOException {<NEW_LINE>elements = new ArrayList<>(1);<NEW_LINE>while (true) {<NEW_LINE>Tokenizer.<MASK><NEW_LINE>if (!t.isString()) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>boolean negative = false;<NEW_LINE>int family;<NEW_LINE>int prefix;<NEW_LINE>String s...
Token t = st.get();
835,291
final ListGitHubAccountTokenNamesResult executeListGitHubAccountTokenNames(ListGitHubAccountTokenNamesRequest listGitHubAccountTokenNamesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGitHubAccountTokenNamesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
909,060
public void submitFormProperty(ExecutionEntity execution, Map<String, String> properties) {<NEW_LINE>if (!isWritable && properties.containsKey(id)) {<NEW_LINE>throw new ActivitiException("form property '" + id + "' is not writable");<NEW_LINE>}<NEW_LINE>if (isRequired && !properties.containsKey(id) && defaultExpression...
convertFormValueToModelValue(expressionValue.toString());
1,126,485
public void createBindings() {<NEW_LINE>LengthConverter lengthConverter = new LengthConverter();<NEW_LINE>nozzleMarkLocation.setLocation(new Location(nozzle.getHeadOffsets().getUnits()));<NEW_LINE>addWrappedBinding(nozzleMarkLocation, "lengthX", nozzleMarkLocationX, "text", lengthConverter);<NEW_LINE>addWrappedBinding(...
"lengthX", nozzleOffsetLocationX, "text", lengthConverter);
645,309
public ActionResponse download(final String id) {<NEW_LINE>final String[] values = decodeId(id);<NEW_LINE>if (StringUtil.isEmpty(values[1])) {<NEW_LINE>throwValidationError(messages -> messages.addErrorsStorageFileNotFound(GLOBAL), () -> asListHtml(encodeId(values[0])));<NEW_LINE>}<NEW_LINE>final StreamResponse respons...
"attachment; filename=\"" + name + "\"; filename*=utf-8''" + encodedName);
1,451,328
public void handle(Context ctx) throws IOException, ServletException {<NEW_LINE>boolean isTraceMode = Cat.getManager().isTraceMode();<NEW_LINE>HttpServletRequest req = ctx.getRequest();<NEW_LINE>HttpServletResponse res = ctx.getResponse();<NEW_LINE>MessageProducer producer = Cat.getProducer();<NEW_LINE>int mode = ctx.g...
setId(producer.createMessageId());
1,079,351
public void onCreate() {<NEW_LINE>mRestoreComplete = false;<NEW_LINE>setTheme(Settings.get().getDarkThemeEnabled() ? R.style.MainServiceThemeDark : R.style.MainServiceThemeLight);<NEW_LINE>super.onCreate();<NEW_LINE>Fabric.with(this, new Crashlytics());<NEW_LINE>CrashTracking.log("MainService.onCreate()");<NEW_LINE>sho...
MainApplication.registerForBus(this, this);
939,062
private void prepareDragger(LayoutComponent[] comps, Rectangle[] bounds, Point hotspot, int[] edges) {<NEW_LINE>if (comps.length != bounds.length)<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>LayoutRegion[] movingFormation = new LayoutRegion[bounds.length];<NEW_LINE>for (int i = 0; i < bounds.length; i++) {<...
(bounds[i], baselinePos);
239,487
static VisitsForWeek boundContributedDays(VisitsForWeek visits, int maxContributedDays) {<NEW_LINE>Map<String, Set<DayOfWeek>> boundedVisitorDays = new HashMap<>();<NEW_LINE>List<Visit> <MASK><NEW_LINE>VisitsForWeek boundedVisits = new VisitsForWeek();<NEW_LINE>// Add all visits to a list in order to shuffle them.<NEW_...
allVisits = new ArrayList<>();
670,210
private boolean isInternalTabularColumn(String userId, EntityDetail tabularColumn) throws OCFCheckedExceptionBase {<NEW_LINE>String methodName = "isInternalTabularColumn";<NEW_LINE>Optional<Relationship> relationship = handlerHelper.getUniqueRelationshipByType(userId, tabularColumn.getGUID(), ATTRIBUTE_FOR_SCHEMA, tabu...
), relationship.get());
1,350,636
private void indexerGeneratorCleanupJob(boolean indexGeneratorJobAttempted, boolean indexGeneratorJobSuccess, String hadoopIngestionSpecStr) {<NEW_LINE>if (!indexGeneratorJobAttempted) {<NEW_LINE>log.info("No need for cleanup as index generator job did not even run");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ClassLoa...
new Object[] { indexerGeneratorCleanupJobInput });
1,836,041
protected FontMatch fontMatchRun(String text, int startIndex, int endIndex, List<Face> fonts) {<NEW_LINE>LinkedList<Face> validFonts <MASK><NEW_LINE>Face lastValid = null;<NEW_LINE>int charIndex = startIndex;<NEW_LINE>int nextCharIndex = charIndex;<NEW_LINE>while (charIndex < endIndex) {<NEW_LINE>char textChar = text.c...
= new LinkedList<>(fonts);
759,964
private static void importFromSingleFile(File file) {<NEW_LINE>if (file.getName().endsWith(CSV_SUFFIXS) || file.getName().endsWith(TXT_SUFFIXS)) {<NEW_LINE>try {<NEW_LINE>CSVParser csvRecords = readCsvFile(file.getAbsolutePath());<NEW_LINE>List<String<MASK><NEW_LINE>Stream<CSVRecord> records = csvRecords.stream();<NEW_...
> headerNames = csvRecords.getHeaderNames();
408,701
public WorkflowResult startInlongGroup(int taskId, Pair<InlongGroupApproveRequest, List<InlongStreamApproveRequest>> initMsg) {<NEW_LINE>JSONObject workflowTaskOperation = new JSONObject();<NEW_LINE>workflowTaskOperation.put("transferTo", Lists.newArrayList());<NEW_LINE>workflowTaskOperation.put("remark", "approved by ...
.body().string();
1,446,953
private static StringMatcher createAsterisksMatcher(String matcher) {<NEW_LINE>int asterisksCount = StringUtil.countChars(matcher, '*');<NEW_LINE>if (asterisksCount > 2)<NEW_LINE>return null;<NEW_LINE>if (asterisksCount == 0) {<NEW_LINE>return text -> <MASK><NEW_LINE>}<NEW_LINE>if (matcher.equals("*")) {<NEW_LINE>retur...
Comparing.equal(text, matcher);
839,212
public static CharSequence unifyLineSeparators(@Nonnull CharSequence text, @Nonnull String newSeparator, @Nullable int[] offsetsToKeep, boolean keepCarriageReturn) {<NEW_LINE>StringBuilder buffer = null;<NEW_LINE>int intactLength = 0;<NEW_LINE>final boolean newSeparatorIsSlashN = "\n".equals(newSeparator);<NEW_LINE>for...
2, newSeparator.length());
492,688
private boolean isArpRequest(Packet packet) {<NEW_LINE>int len = 0;<NEW_LINE>String bssid;<NEW_LINE>String client;<NEW_LINE>String dest;<NEW_LINE>String seq;<NEW_LINE>String lenString = packet.getField(DissectionStrings.DISS_DATA_LENGTH);<NEW_LINE>if (lenString == null || lenString.isEmpty())<NEW_LINE>return false;<NEW...
packet.getField(DissectionStrings.DISS_BSSID);
1,814,319
private void resizeVolume(VolumeInfo volumeInfo) {<NEW_LINE>LOGGER.debug("Resizing PowerFlex volume");<NEW_LINE>Preconditions.checkArgument(volumeInfo != null, "volumeInfo cannot be null");<NEW_LINE>try {<NEW_LINE>String scaleIOVolumeId = ScaleIOUtil.getVolumePath(volumeInfo.getPath());<NEW_LINE>Long storagePoolId = vo...
datastore.api.Volume scaleIOVolume = null;
338,732
public void flush() {<NEW_LINE>Thread currentThread = Thread.currentThread();<NEW_LINE>Iterator<ZipFile> iterator = this.map<MASK><NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>ZipFile zipFile = iterator.next();<NEW_LINE>try {<NEW_LINE>if (JavaModelManager.ZIP_ACCESS_VERBOSE) {<NEW_LINE>// $NON-NLS-1$//$NON-NLS-2$<NEW...
.values().iterator();
150,770
public String processTemplate(Object data, String templateName, Theme theme) throws FreeMarkerException {<NEW_LINE>if (data instanceof Map) {<NEW_LINE>((Map) data).put("kcSanitize", kcSanitizeMethod);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Template template;<NEW_LINE>if (cache != null) {<NEW_LINE>String key = theme.getName...
template = getTemplate(templateName, theme);
362,117
public DeleteObjectsResult deleteObjects(DeleteObjectsRequest deleteObjectsRequest) {<NEW_LINE>deleteObjectsRequest = beforeClientExecution(deleteObjectsRequest);<NEW_LINE>Request<DeleteObjectsRequest> request = createRequest(deleteObjectsRequest.getBucketName(), null, deleteObjectsRequest, HttpMethodName.POST);<NEW_LI...
request, deleteObjectsRequest.getMfa());
137,379
public S3Action unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3Action s3Action = new S3Action();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LI...
int originalDepth = context.getCurrentDepth();
296,991
public void read(org.apache.thrift.protocol.TProtocol prot, BuckCacheFetchResponse struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet <MASK><NEW_LINE>if (incoming.get(0)) {<NEW_LINE>struct.a...
incoming = iprot.readBitSet(4);
852,864
private <T extends Metric> T register(Metadata metadata, boolean useExistingMetadata, T metric, Tag... tags) {<NEW_LINE>if (metadata.getTypeRaw() == MetricType.INVALID) {<NEW_LINE>metadata = withType(metadata, MetricType.from(metric.getClass()));<NEW_LINE>}<NEW_LINE>String name = metadata.getName();<NEW_LINE>checkNameI...
name, newMetadata, family.metadata);
546,264
private Map<String, ShapeModel> addEmptyOutputShapes(Map<String, OperationModel> currentOperations) {<NEW_LINE>Map<String, Operation> operations = serviceModel.getOperations();<NEW_LINE>Map<String, ShapeModel> <MASK><NEW_LINE>for (Map.Entry<String, Operation> entry : operations.entrySet()) {<NEW_LINE>String operationNa...
emptyOutputShapes = new HashMap<>();
72,859
public void generate(final EncogAnalyst analyst) {<NEW_LINE>if (this.targetLanguage == TargetLanguage.MQL4 || this.targetLanguage == TargetLanguage.NinjaScript) {<NEW_LINE>if (!this.embedData) {<NEW_LINE>throw new AnalystCodeGenerationError("MQL4 and Ninjascript must be embedded.");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (t...
.generator).generate(analyst);
226,484
protected ValidationInfo doValidate() {<NEW_LINE>if (StringUtils.isEmpty(comboBoxIcon.getInputText().trim())) {<NEW_LINE>return new ValidationInfo(ERROR_ICON_NOT_SELECTED, comboBoxIcon);<NEW_LINE>}<NEW_LINE>if (StringUtils.isEmpty(textFieldFileName.getText().trim())) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (!checkBoxM...
return new ValidationInfo(ERROR_FILE_NAME_EMPTY, textFieldFileName);
591,707
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>showAuto = PreferencesUtility.getInstance(getActivity()).showAutoPlaylist();<NEW_LINE>View rootView = inflater.inflate(R.layout.fragment_playlist_pager, container, false);<NEW_LINE>final List...
.create(foreground, "transition_foreground"));
623,687
public static MethodOutcome process2xxResponse(FhirContext theContext, int theResponseStatusCode, String theResponseMimeType, InputStream theResponseReader, Map<String, List<String>> theHeaders) {<NEW_LINE>List<String> locationHeaders = new ArrayList<>();<NEW_LINE>List<String> lh = theHeaders.get(Constants.HEADER_LOCAT...
ourLog.debug("No content in response, not going to read", e);
581,562
public synchronized void merge(MergeSource mergeSource, MergeTrigger trigger) throws IOException {<NEW_LINE>if (trigger == MergeTrigger.CLOSING) {<NEW_LINE>// Disable throttling on close:<NEW_LINE>targetMBPerSec = MAX_MERGE_MB_PER_SEC;<NEW_LINE>updateMergeThreads();<NEW_LINE>}<NEW_LINE>// First, quickly run through the...
OneMerge merge = mergeSource.getNextMerge();
623,351
/*<NEW_LINE>private void trimUnsafeCommits() throws IOException {<NEW_LINE>assert currentEngineReference.get() == null || currentEngineReference.get() instanceof ReadOnlyEngine : "a write engine is running";<NEW_LINE>final String translogUUID = store.readLastCommittedSegmentsInfo().getUserData().get(Translog.TRANSLOG_U...
containsKey(Engine.HISTORY_UUID_KEY) : "commit point doesn't contains a history uuid";
965,058
public static void touch(String path, String... args) throws IOException, ParseException {<NEW_LINE>File file = new File(path);<NEW_LINE>if (!file.exists()) {<NEW_LINE>file.createNewFile();<NEW_LINE>if (args.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>long timeMillis = args.length < 2 ? System.curren...
accessFileTime = FileTime.fromMillis(timeMillis);
1,292,060
public OSSAsyncTask<CompleteMultipartUploadResult> completeMultipartUpload(CompleteMultipartUploadRequest request, final OSSCompletedCallback<CompleteMultipartUploadRequest, CompleteMultipartUploadResult> completedCallback) {<NEW_LINE>RequestMessage requestMessage = new RequestMessage();<NEW_LINE>requestMessage.setIsAu...
(request.getPartETags()));
346,501
private void logMQTTMessage(ChannelHandlerContext ctx, Object message, String direction) {<NEW_LINE>if (!(message instanceof MqttMessage)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MqttMessage msg = (MqttMessage) message;<NEW_LINE>String clientID = NettyUtils.<MASK><NEW_LINE>MqttMessageType messageType = msg.fixedHeader()...
clientID(ctx.channel());
915,109
public static String transformQueryString(String qs) {<NEW_LINE>// drop characters that are not properly supported by Indri<NEW_LINE>// ('.' is only allowed in between digits)<NEW_LINE>qs = qs.replaceAll("&\\w++;", " ");<NEW_LINE>qs = <MASK><NEW_LINE>String dotsRemoved = "";<NEW_LINE>for (int i = 0; i < qs.length(); i+...
qs.replaceAll(FORBIDDEN_CHAR, " ");
1,666,688
public void replaceBlock(@Sender EntityRef sender, @CommandParam("blockName") String uri, @CommandParam(value = "maxDistance", required = false) Integer maxDistanceParam) {<NEW_LINE>int maxDistance = maxDistanceParam != null ? maxDistanceParam : 12;<NEW_LINE>EntityRef playerEntity = sender.getComponent(ClientComponent....
targetLocation.getPosition(), block);
585,424
public void logAlert(String str, boolean error, int type) {<NEW_LINE>boolean logged = false;<NEW_LINE>if (alert_device_probs_param.getValue()) {<NEW_LINE>if (type == UPnPLogListener.TYPE_ALWAYS) {<NEW_LINE>log.logAlertRepeatable(error ? LoggerChannel.LT_ERROR : LoggerChannel.LT_WARNING, str);<NEW_LINE>logged = true;<NE...
getFormatters().encodeBytesToString(fp);
1,017,097
public ModelExplainabilityJobInput unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ModelExplainabilityJobInput modelExplainabilityJobInput = new ModelExplainabilityJobInput();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE...
String currentParentElement = context.getCurrentParentElement();
319,962
public static String constructNewName(FileObject javaFile, RenameRefactoring rename) {<NEW_LINE>final String fqn = JavaIdentifiers.getQualifiedName(javaFile);<NEW_LINE>if (isPackage(rename)) {<NEW_LINE>return rename.getNewName() + "." + JavaIdentifiers.unqualify(fqn);<NEW_LINE>}<NEW_LINE>final FileObject folder = renam...
).lookup(FileObject.class);
1,178,228
/*<NEW_LINE>* @see com.ibm.ws.channel.ssl.internal.SSLHandshakeCompletedCallback#error(java.io.IOException)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void error(IOException ioe) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.debug(tc, "error (handshake), vc=" + getVCHash(...
close(getVirtualConnection(), null);
1,777,859
private static Configuration buildConfiguration() {<NEW_LINE>String configTypeName = CURRENT_FILE_INSTANCE.getConfig(ConfigurationKeys.FILE_ROOT_CONFIG + ConfigurationKeys.FILE_CONFIG_SPLIT_CHAR + ConfigurationKeys.FILE_ROOT_TYPE);<NEW_LINE>if (StringUtils.isBlank(configTypeName)) {<NEW_LINE>throw new NotSupportYetExce...
getInstance().proxy(configuration);
256,588
protected void updateContent() {<NEW_LINE>headerContainer = view.findViewById(R.id.header);<NEW_LINE>tvHeaderTitle = view.<MASK><NEW_LINE>tvHeaderSubtitle = view.findViewById(R.id.subtitle);<NEW_LINE>chipsView = view.findViewById(R.id.selection_menu);<NEW_LINE>tvDescription = view.findViewById(R.id.description);<NEW_LI...
findViewById(R.id.title);
1,394,435
private void collapseNode(Component c, Transition t) {<NEW_LINE>Container lead = c.getParent().getLeadParent();<NEW_LINE>if (lead != null) {<NEW_LINE>c = lead;<NEW_LINE>}<NEW_LINE>c.putClientProperty(KEY_EXPANDED, null);<NEW_LINE>if (folder == null) {<NEW_LINE>setNodeMaterialIcon(FontImage.MATERIAL_FOLDER, c, 3);<NEW_L...
dest = p.getComponentAt(iter);
1,328,718
public LBStickinessResponse createLBStickinessPolicyResponse(StickinessPolicy stickinessPolicy, LoadBalancer lb) {<NEW_LINE>LBStickinessResponse spResponse = new LBStickinessResponse();<NEW_LINE>spResponse.setlbRuleId(lb.getUuid());<NEW_LINE>Account accountTemp = ApiDBUtils.findAccountById(lb.getAccountId());<NEW_LINE>...
setDomainId(domain.getUuid());
981,381
public static DescribeDtsEtlJobVersionInfoResponse unmarshall(DescribeDtsEtlJobVersionInfoResponse describeDtsEtlJobVersionInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDtsEtlJobVersionInfoResponse.setRequestId<MASK><NEW_LINE>describeDtsEtlJobVersionInfoResponse.setSuccess(_ctx.booleanValue("DescribeDtsEtl...
(_ctx.stringValue("DescribeDtsEtlJobVersionInfoResponse.RequestId"));
1,341,101
public static void createConstructor(PythonObjectSlowPathFactory factory, PythonLanguage language, Object klass, Class<?> nodeClass, Supplier<PythonBuiltinBaseNode> nodeSupplier, Object... callTargetCacheKeys) {<NEW_LINE>Builtin builtin = nodeClass.getAnnotation(Builtin.class);<NEW_LINE>assert __NEW__.equals(builtin.na...
, createCalltargetKeys(callTargetCacheKeys, nodeClass));
1,555,123
private EigrpMetric computeEigrpMetricForInterface(Interface iface, EigrpProcessMode mode) {<NEW_LINE>Long bw = // convert to kbps<NEW_LINE>Stream.of(iface.getBandwidth(), Interface.getDefaultBandwidth(iface.getName(), _vendor)).filter(Objects::nonNull).findFirst().// convert to kbps<NEW_LINE>map(bandwidth -> bandwidth...
iface.getName(), _vendor);
1,238,001
// runs validation tasks in local environment<NEW_LINE>private boolean validateLocal(String target, String name, CommandLine cmd) throws InterruptedException {<NEW_LINE>int validationCount = 0;<NEW_LINE>Map<ValidationUtils.State, Integer> results = new HashMap<>();<NEW_LINE>Map<String, String> optionsMap = new HashMap<...
out.print(Constants.ANSI_PURPLE);
1,684,475
public void validate(JobParameters theJobParameters) throws JobParametersInvalidException {<NEW_LINE>if (theJobParameters == null) {<NEW_LINE>throw new JobParametersInvalidException(Msg.code(793) + "This job needs Parameters: [readChunkSize], [jobUUID], [filters], [outputFormat], [resourceTypes]");<NEW_LINE>}<NEW_LINE>...
append("The only allowed format for Bulk Export is currently " + Constants.CT_FHIR_NDJSON);
1,293,233
public LicenseUsage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LicenseUsage licenseUsage = new LicenseUsage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
1,023,975
private static Tuple2<Integer, Integer> computeNewReadSpan(final int originalContigStart, final int originalContigEnd, final Cigar newCigarAlong5to3DirectionOfContig, final int clipLengthOnRead, final boolean clipFrom3PrimeEnd) {<NEW_LINE>final int newTigStart, newTigEnd;<NEW_LINE>if (clipFrom3PrimeEnd) {<NEW_LINE>newT...
Tuple2<>(newTigStart, newTigEnd);
1,164,733
public void onResponse(Call call, Response response) throws IOException {<NEW_LINE>ReadableMap notifyConfig = options.addAndroidDownloads;<NEW_LINE>// Download manager settings<NEW_LINE>if (notifyConfig != null) {<NEW_LINE>String title = "", desc = "", mime = "text/plain";<NEW_LINE>boolean scannable = false, notificati...
options.addAndroidDownloads.getString("title");
190,205
static long hash(PartitionSettings thePartitionSettings, RequestPartitionId theRequestPartitionId, String... theValues) {<NEW_LINE>Hasher hasher = HASH_FUNCTION.newHasher();<NEW_LINE>if (thePartitionSettings.isPartitioningEnabled() && thePartitionSettings.isIncludePartitionInSearchHashes() && theRequestPartitionId != n...
.code(1527) + "Can not search multiple partitions when partitions are included in search hashes");
731,004
public Mono<Response<List<VnetInfoInner>>> listVnetConnectionsWithResponseAsync(String resourceGroupName, String name) {<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>...
)).readOnly()));
662,098
final ListIdentityProviderConfigsResult executeListIdentityProviderConfigs(ListIdentityProviderConfigsRequest listIdentityProviderConfigsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIdentityProviderConfigsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,570,688
public FunctionalIterator<Unifier> unify(Rule.Conclusion.Has hasConclusion, ConceptManager conceptMgr) {<NEW_LINE>Unifier.Builder unifierBuilder = Unifier.builder();<NEW_LINE>ThingVariable owner = has().owner();<NEW_LINE>ThingVariable unifiedOwner = hasConclusion.has().owner();<NEW_LINE>if (unificationSatisfiable(owner...
), conclusionAttr.id());
1,398,101
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.DoubleValue mirrorOf(com.sun.jdi.VirtualMachine a, double b) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.mo...
[] { a, b });