idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
224,069
private JCCompilationUnit doCompile(JavaFileObject input, Iterable<JavaFileObject> files, Context context) throws IOException {<NEW_LINE>JavacTool tool = JavacTool.create();<NEW_LINE>DiagnosticCollector<JavaFileObject> diagnosticsCollector = new DiagnosticCollector<>();<NEW_LINE>ErrorProneOptions errorProneOptions;<NEW...
errorProneOptions = ErrorProneOptions.processArgs(options);
329,437
public static String jsonFromFields(String topic, long idx, long timestamp, String producerId, int msgSize) {<NEW_LINE>GenericRecord record = new GenericData.Record(DefaultTopicSchema.MESSAGE_V0);<NEW_LINE>record.put(DefaultTopicSchema.<MASK><NEW_LINE>record.put(DefaultTopicSchema.INDEX_FIELD.name(), idx);<NEW_LINE>rec...
TOPIC_FIELD.name(), topic);
1,440,800
private void readArchiveData() throws IOException {<NEW_LINE>// INDEX<NEW_LINE>// Pad<NEW_LINE>archiveIndexFile.readInt();<NEW_LINE>// UserData, should be 0<NEW_LINE>archiveIndexFile.readLong();<NEW_LINE>entryCount = archiveIndexFile.readInt();<NEW_LINE>entryOffset = archiveIndexFile.readInt();<NEW_LINE>hashOffset = ar...
.resourceOffset = archiveIndexFile.readInt();
104,945
private void loadOptionsConfig() throws TemplateModelException {<NEW_LINE>final String blogBaseUrl = optionService.getBlogBaseUrl();<NEW_LINE>final String context = optionService.isEnabledAbsolutePath() ? blogBaseUrl + "/" : "/";<NEW_LINE>configuration.setSharedVariable("options", optionService.listOptions());<NEW_LINE...
context + optionService.getArchivesPrefix());
1,333,565
private void drawWoodenBoard(Graphics2D g) {<NEW_LINE>if (uiConfig.getBoolean("fancy-board")) {<NEW_LINE>// fancy version<NEW_LINE>if (cachedBoardImage == emptyImage) {<NEW_LINE>cachedBoardImage = Lizzie.config.theme.board();<NEW_LINE>}<NEW_LINE>drawTextureImage(g, cachedBoardImage, x - 2 * shadowRadius, y - 2 * shadow...
g.setRenderingHint(KEY_ANTIALIASING, VALUE_ANTIALIAS_OFF);
402,652
public void cellHover(TableCell cell) {<NEW_LINE>super.cellHover(cell);<NEW_LINE>long lConnectedSeeds = 0;<NEW_LINE>DownloadManager dm = (DownloadManager) cell.getDataSource();<NEW_LINE>if (dm != null) {<NEW_LINE>lConnectedSeeds = dm.getNbSeeds();<NEW_LINE>String sToolTip = lConnectedSeeds + " " + MessageText.getString...
dm.getUserData(DHTTrackerPlugin.DOWNLOAD_USER_DATA_I2P_SCRAPE_KEY);
574,155
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {<NEW_LINE>SceneTransToPointReq req = SceneTransToPointReq.parseFrom(payload);<NEW_LINE>String code = req.getSceneId() + "_" + req.getPointId();<NEW_LINE>ScenePointEntry scenePointEntry = GenshinData.getScenePointEntries().get(code)...
.getTranPos().getY();
829,378
public com.amazonaws.services.clouddirectory.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.clouddirectory.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.clouddirectory.model.ResourceNotFou...
JsonToken token = context.getCurrentToken();
1,538,647
public void invalidated(Observable valueModel) {<NEW_LINE>if (valueModel == labeled.textProperty()) {<NEW_LINE>labeledImpl.setText(labeled.getText());<NEW_LINE>} else if (valueModel == labeled.graphicProperty()) {<NEW_LINE>// If the user set the graphic, then mirror that.<NEW_LINE>// Otherwise, the graphic was set via ...
graphicProperty()).getStyleOrigin();
340,672
public Optional<String> checkValue(String value) {<NEW_LINE>if (StringUtil.isBlank(value)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>if (value.equals(FIRST_EDITION)) {<NEW_LINE>return Optional.of(Localization.lang("edition of book reported as just 1"));<NEW_LINE>}<NEW_LINE>if (bibDatabaseContextEdition.is...
(Localization.lang("no integer as values for edition allowed"));
308,460
final UpdateQuickConnectNameResult executeUpdateQuickConnectName(UpdateQuickConnectNameRequest updateQuickConnectNameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateQuickConnectNameRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
invoke(request, responseHandler, executionContext);
1,758,525
static ConfiguredType create(JsonObject type) {<NEW_LINE>ConfiguredType ct = new ConfiguredType(type.getString("type"), type.getBoolean("standalone", false), type.getString("prefix", null), type.getString("description", null), toList(type.getJsonArray("provides")));<NEW_LINE>List<String> producers = toList<MASK><NEW_LI...
(type.getJsonArray("producers"));
1,032,495
protected boolean validateComponent() {<NEW_LINE>// errors<NEW_LINE>Integer port = parseInteger(debuggerPanel.getPort());<NEW_LINE>if (port == null || port < 1) {<NEW_LINE>debuggerPanel.setError(NbBundle.getMessage(PhpDebuggerPanelController.class, "MSG_DebuggerInvalidPort"));<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE...
parseInteger(debuggerPanel.getMaxDataLength());
496,961
public static void fromXmlNode(MMigration parent, Node stepNode) {<NEW_LINE>MMigrationStep mstep = new MMigrationStep(parent);<NEW_LINE>Element step = (Element) stepNode;<NEW_LINE>mstep.setSeqNo(Integer.parseInt(step.getAttribute("SeqNo")));<NEW_LINE>mstep.setStepType(step.getAttribute("StepType"));<NEW_LINE>mstep.setS...
(element.getAttribute("Action"));
1,511,855
public boolean acceptIndexMatch(String documentPath, SearchPattern indexRecord, SearchParticipant participant, AccessRuleSet access) {<NEW_LINE>SuperTypeReferencePattern record = (SuperTypeReferencePattern) indexRecord;<NEW_LINE>boolean isLocalOrAnonymous = record.enclosingTypeName == IIndexConstants.ONE_ZERO;<NEW_LINE...
foundSuperNames.put(fqnSuperName, fqnSuperName);
1,066,817
protected String displayForm(HttpServletRequest request, Model model) throws Exception {<NEW_LINE>UserSettingsCommand command;<NEW_LINE>if (!model.containsAttribute("command")) {<NEW_LINE>command = new UserSettingsCommand();<NEW_LINE>User user = getUser(request);<NEW_LINE>if (user != null) {<NEW_LINE>command.setUser(us...
setEmail(user.getEmail());
514,167
private Mono<Response<Flux<ByteBuffer>>> deletePublicIpWithResponseAsync(String resourceGroupName, String publicIpId, String privateCloudName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and...
publicIpId, privateCloudName, accept, context);
193,034
private void initializeTypes() {<NEW_LINE>// create class objects for builtin types<NEW_LINE>for (PythonBuiltinClassType builtinClass : PythonBuiltinClassType.VALUES) {<NEW_LINE>initializeBuiltinClass(builtinClass);<NEW_LINE>}<NEW_LINE>// n.b.: the builtin modules and classes and their constructors are initialized firs...
annotation.defineModule(), builtin);
328,503
protected void readObjStm(PRStream stream, IntHashtable map) throws IOException {<NEW_LINE>int first = stream.getAsNumber(PdfName.FIRST).intValue();<NEW_LINE>int n = stream.getAsNumber(PdfName.N).intValue();<NEW_LINE>byte[] b = getStreamBytes(stream, tokens.getFile());<NEW_LINE>PRTokeniser saveTokens = tokens;<NEW_LINE...
(MessageLocalization.getComposedMessage("error.reading.objstm"));
382,958
final ListVirtualClustersResult executeListVirtualClusters(ListVirtualClustersRequest listVirtualClustersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listVirtualClustersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(listVirtualClustersRequest));
76,193
public RepresentationModel<T> beforeBodyWrite(@Nullable RepresentationModel<T> body, MethodParameter returnType, MediaType selectedContentType, Class<? extends HttpMessageConverter<?>> selectedConverterType, ServerHttpRequest request, ServerHttpResponse response) {<NEW_LINE>// Only step in if we are about to render HAL...
getHeaders().setContentType(supported);
1,263,738
public boolean isChanged() {<NEW_LINE>String saved = AnalysisOptions.getInstance().getCodingStandardsFixerPath();<NEW_LINE>String current <MASK><NEW_LINE>if (saved == null ? !current.isEmpty() : !saved.equals(current)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>saved = AnalysisOptions.getInstance().getCodingStandardsF...
= getCodingStandardsFixerPath().trim();
1,757,136
default CompletableFuture<KeyValue<K, V>> vDelete(K k, long expectedVersion) {<NEW_LINE>TxnOp<K, V> op = getOpFactory().newTxn().If(newCompareVersion(CompareResult.EQUAL, k, expectedVersion)).Then(getOpFactory().newDelete(k, Options.deleteAndGet())).build();<NEW_LINE>return txn(op).thenCompose(result -> {<NEW_LINE>try ...
(prevKvs.get(0));
1,052,869
public // ///////////////////////////////////////////////////////////////<NEW_LINE>void initDataSource() {<NEW_LINE>if (dataSource == null) {<NEW_LINE>if (dataSourceJndiName != null) {<NEW_LINE>try {<NEW_LINE>dataSource = (DataSource) new InitialContext().lookup(dataSourceJndiName);<NEW_LINE>} catch (Exception e) {<NEW...
e.getMessage(), e);
1,639,476
private DomNode toXmlNode() {<NEW_LINE>DomNode root = new DomNode(nodeNameFor("application"));<NEW_LINE>Map<String, String> rootAttributes = Cast.uncheckedCast(root.attributes());<NEW_LINE>rootAttributes.put("version", version);<NEW_LINE>if (!"1.3".equals(version)) {<NEW_LINE>rootAttributes.put("xmlns:xsi", "http://www...
, nodeNameFor("description"), description);
598,581
public Quaternion fromEuler(double yaw, double pitch, double roll) {<NEW_LINE>yaw = Math.toRadians(yaw);<NEW_LINE>pitch = Math.toRadians(pitch);<NEW_LINE>roll = Math.toRadians(roll);<NEW_LINE>double hr = roll * 0.5;<NEW_LINE>double shr = Math.sin(hr);<NEW_LINE>double chr = Math.cos(hr);<NEW_LINE>double hp = pitch * 0.5...
shp = Math.sin(hp);
72,785
public synchronized void cleanUp(Set<Long> activeTableIds) {<NEW_LINE>// We have to remember that there might be some race conditions when there are two tables created at once.<NEW_LINE>// That can lead to a situation when MemoryPagesStore already knows about a newer second table on some worker<NEW_LINE>// but cleanUp ...
latestTableId = Collections.max(activeTableIds);
1,403,214
public void onClick(View v) {<NEW_LINE>EntryEditActivity act = EntryEditActivity.this;<NEW_LINE>if (!validateBeforeSaving()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PwEntry newEntry = populateNewEntry();<NEW_LINE>if (newEntry.getTitle().equals(mEntry.getTitle())) {<NEW_LINE>setResult(KeePass.EXIT_REFRESH);<NEW_LINE>} el...
task, R.string.saving_database);
1,841,720
final GetBotResult executeGetBot(GetBotRequest getBotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Get...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,733,387
protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>report = (Report) getIntent().getSerializableExtra(EXTRA_REPORT);<NEW_LINE>final FloatingActionButton fab = findViewById(R.id.fab);<NEW_LINE>final TextView headerText = findViewById(R.id....
setContentView(R.layout.hc_activity);
347,204
/*<NEW_LINE>public void handlePressed(MouseEvent e, int sel) {<NEW_LINE>boolean shift = e.isShiftDown();<NEW_LINE>AndroidEditor aeditor = (AndroidEditor) editor;<NEW_LINE><NEW_LINE>switch (sel) {<NEW_LINE>case RUN:<NEW_LINE>if (!shift) {<NEW_LINE>aeditor.handleRunDevice();<NEW_LINE>} else {<NEW_LINE>aeditor.handleRunEm...
.getToolbarMenu().getPopupMenu();
1,355,515
final GetGroupsResult executeGetGroups(GetGroupsRequest getGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
(super.beforeMarshalling(getGroupsRequest));
68,158
public R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9) throws Exception {<NEW_LINE>if (t1 == null) {<NEW_LINE>throw new NullPointerException("t1 is null, tag = " + tag);<NEW_LINE>}<NEW_LINE>if (t2 == null) {<NEW_LINE>throw new NullPointerException("t2 is null, tag = " + tag);<NEW_LINE>}<NEW_LINE>...
throw new NullPointerException("t7 is null, tag = " + tag);
678,811
public Object execute(ExecutionEvent event, Command command, IPath path) throws ExecutionException {<NEW_LINE>if (JAVA_WORKSPACE_COMMAND.equals(command.getCommand())) {<NEW_LINE>String cmdId = (String) command.getArguments().get(0);<NEW_LINE>List<Object> arguments = command.getArguments().subList(1, command.getArgument...
Boolean) arguments.get(1);
587,787
private static void returnExceptVoidAndLuaValue(MethodSpec.Builder mb, final String call, TypeName returnType, boolean initGlobals) {<NEW_LINE>if (isBoolean(returnType)) {<NEW_LINE>mb.addCode("return ");<NEW_LINE>LuaValue_varargsOf(mb, getLuaBoolean(call), LuaValue, LuaValue);<NEW_LINE>} else if (isInt(returnType)) {<N...
, getLuaString(call), LuaString);
1,744,947
public Clustering<BiclusterWithInversionsModel> biclustering() {<NEW_LINE>double[][] mat = RelationUtil.relationAsMatrix(relation, rowIDs);<NEW_LINE>BiclusterCandidate cand = new BiclusterCandidate(getRowDim(), getColDim());<NEW_LINE>Clustering<BiclusterWithInversionsModel> result = new Clustering<>();<NEW_LINE>Metadat...
": " + cand.residue + "\n");
221,007
public void registerAdapters(ReactiveAdapterRegistry registry) {<NEW_LINE>registry.registerReactiveType(ReactiveTypeDescriptor.multiValue(Flowable.class, Flowable::empty), source -> (Flowable<?>) source, Flowable::fromPublisher);<NEW_LINE>registry.registerReactiveType(ReactiveTypeDescriptor.multiValue(Observable.class,...
toObservable().ignoreElements());
27,075
public static <T extends ImageGray<T>> void orderBandsIntoRGB(Planar<T> image, BufferedImage input) {<NEW_LINE>boolean swap = swapBandOrder(input);<NEW_LINE>// Output formats are: RGB and RGBA<NEW_LINE>if (swap) {<NEW_LINE>if (image.getNumBands() == 3) {<NEW_LINE>int bufferedImageType = input.getType();<NEW_LINE>if (bu...
] = image.getBand(2);
1,607,118
public String toDebugString(final Locale locale) {<NEW_LINE>if (values == null) {<NEW_LINE>return "No Email Item";<NEW_LINE>}<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>for (final Map.Entry<String, EmailItemBean> entry : values.entrySet()) {<NEW_LINE>final String localeKey = entry.getKey();<NEW_LIN...
()).append('\n');
1,654,425
private void writeResLog(File newFile, File oldFile, int mode) throws IOException {<NEW_LINE>if (logWriter != null) {<NEW_LINE>String log = "";<NEW_LINE>String relative;<NEW_LINE>switch(mode) {<NEW_LINE>case TypedValue.ADD:<NEW_LINE>relative = getRelativePathStringToNewFile(newFile);<NEW_LINE>Logger.d("Found add resour...
", newSize=" + FileOperation.getFileSizes(newFile);
1,851,792
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.userId, convLabelName("User Id"));<NEW_LINE>if (err...
.insertUser, convLabelName("Insert User"));
1,489,746
public static SAMFileHeader createArtificialSamHeaderWithPrograms(int numberOfChromosomes, int startingChromosome, int chromosomeSize, int programCount) {<NEW_LINE>final SAMFileHeader header = <MASK><NEW_LINE>final List<SAMProgramRecord> programRecords = new ArrayList<>();<NEW_LINE>for (int i = 0; i < programCount; i++...
createArtificialSamHeader(numberOfChromosomes, startingChromosome, chromosomeSize);
1,463,142
private List<IdentityItem> scanIdentityList(Business business, IdentitySheetConfigurator configurator, Sheet sheet) throws Exception {<NEW_LINE>if (null == configurator.getUniqueColumn()) {<NEW_LINE>throw new ExceptionUniqueColumnEmpty();<NEW_LINE>}<NEW_LINE>if (null == configurator.getUnitCodeColumn()) {<NEW_LINE>thro...
(configurator.getMajorColumn()));
1,353,207
public void end(String successMessage, String failureMessage, String language) throws SAXException {<NEW_LINE>ResultHandler resultHandler = emitter.startResult();<NEW_LINE>if (resultHandler != null) {<NEW_LINE>if (isIndeterminate()) {<NEW_LINE>resultHandler.startResult(Result.INDETERMINATE);<NEW_LINE>resultHandler.char...
INDETERMINATE_MESSAGE, 0, INDETERMINATE_MESSAGE.length);
363,787
protected void generateMap(JDefinedClass mapClass, MapTemplateSpec mapSpec) throws JClassAlreadyExistsException {<NEW_LINE>final JClass valueJClass = generate(mapSpec.getValueClass());<NEW_LINE>final JClass dataJClass = generate(mapSpec.getValueDataClass());<NEW_LINE>final boolean isDirect = CodeUtil.isDirectType(mapSp...
schemaField, _dataMapClass, valueJClass, dataJClass);
665,090
protected void encodeAtom(OutputStream outputstream, byte[] abyte0, int i, int j) throws IOException {<NEW_LINE>if (j == 1) {<NEW_LINE>byte byte0 = abyte0[i];<NEW_LINE>int k = 0;<NEW_LINE>outputstream.write(pem_array[byte0 >>> 2 & 63]);<NEW_LINE>outputstream.write(pem_array[(byte0 << 4 & 48) + (k ><MASK><NEW_LINE>outpu...
>> 4 & 15)]);
533,841
private int resolveConstructorArguments(String beanName, RootBeanDefinition mbd, BeanWrapper bw, ConstructorArgumentValues cargs, ConstructorArgumentValues resolvedValues) {<NEW_LINE>TypeConverter customConverter = this.beanFactory.getCustomTypeConverter();<NEW_LINE>TypeConverter converter = (customConverter != null ? ...
), valueHolder.getName());
562,346
private TaskProvider<BootJar> configureBootJarTask(Project project, TaskProvider<ResolveMainClassName> resolveMainClassName) {<NEW_LINE>SourceSet mainSourceSet = javaPluginExtension(project).getSourceSets().getByName(SourceSet.MAIN_SOURCE_SET_NAME);<NEW_LINE>Configuration developmentOnly = project.getConfigurations().g...
.filter(new JarTypeFileSpec());
1,425,020
public static void vertical(Kernel1D_S32 kernel, GrayU8 input, GrayI8 output, int skip, int divisor) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final byte[] dataDst = output.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int radius = kernel.getRadius();<NEW_LINE>final <MASK><NEW_LINE>int h...
int kernelWidth = kernel.getWidth();
1,207,194
public void initialize(Config config, Config runtime) {<NEW_LINE>// validate the topology name before moving forward<NEW_LINE>if (!topologyNameIsValid(Runtime.topologyName(runtime))) {<NEW_LINE>throw new RuntimeException(getInvalidTopologyNameMessage(Runtime.topologyName(runtime)));<NEW_LINE>}<NEW_LINE>// validate that...
KubernetesContext.getKubernetesImagePullPolicy(config)));
1,413,298
public void fillProcessQueueInfo(final ProcessQueueInfo info) {<NEW_LINE>try {<NEW_LINE>this.treeMapLock.readLock().lockInterruptibly();<NEW_LINE>if (!this.msgTreeMap.isEmpty()) {<NEW_LINE>info.setCachedMsgMinOffset(this.msgTreeMap.firstKey());<NEW_LINE>info.setCachedMsgMaxOffset(this.msgTreeMap.lastKey());<NEW_LINE>in...
this.tryUnlockTimes.get());
1,457,932
public void readOptions(Map<String, String> opts) {<NEW_LINE>disableUpdates = true;<NEW_LINE>RunOptionsModel.LoaderPolicy pol;<NEW_LINE>boolean enabled = Boolean.parseBoolean(opts.getOrDefault(JSHELL_ENABLED, Boolean.FALSE.toString()));<NEW_LINE>checkEnable.setSelected(enabled);<NEW_LINE>String polString = opts.getOrDe...
RunOptionsModel.LoaderPolicy.valueOf(polString);
1,624,384
public static Object runFunctionScriptingSupport(Object reference, String function, Object[] args) {<NEW_LINE>Class<?> classSup = null;<NEW_LINE>if (reference == null || (reference instanceof String && ((String) reference).contains("org.python"))) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (ClassNotFoundExceptio...
classSup = Class.forName("org.sikuli.support.ide.JythonSupport");
1,236,131
public static Object checkCast(Object value, Object object, String valueClassName) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>ClassLoader valueLoader = value == null ? null : AccessController.doPrivileged(new GetClassLoaderPrivileged(value.getClass()));<NEW_LINE>ClassLoader c...
forName(valueClassName, false, objectLoader);
1,460,638
public void appendSpecificHtml(PrintWriter writer) {<NEW_LINE>writer.format("GetDataStream: %d queued batches, %d pending requests [", batches.size(), pending.size());<NEW_LINE>for (Map.Entry<Long, AppendableInputStream> entry : pending.entrySet()) {<NEW_LINE>writer.format("Stream %d ", entry.getKey());<NEW_LINE>if (en...
().queue.size();
1,038,203
public TrustStore unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TrustStore trustStore = new TrustStore();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken()...
int originalDepth = context.getCurrentDepth();
1,263,348
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {<NEW_LINE>Authentication auth = SecurityContextHolder.getContext().getAuthentication();<NEW_LINE>if (auth instanceof Authentication) {<NEW_LINE>request.setAttribute("userAuthorities", gson.toJson(auth.ge...
"userInfoJson", user.toJson());
1,766,458
private void flushBufferedData() throws IOException {<NEW_LINE>if (o == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int compressedLength = compressor.compress(buffer, 0, o, compressedBuffer, HEADER_LENGTH);<NEW_LINE>final int compressMethod;<NEW_LINE>if (compressedLength >= o) {<NEW_LINE>compressMethod = COMPRESSION_METH...
compressedBuffer, 0, HEADER_LENGTH + compressedLength);
1,106,140
public void marshall(CreateIntegrationResponseRequest createIntegrationResponseRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createIntegrationResponseRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshall...
createIntegrationResponseRequest.getContentHandlingStrategy(), CONTENTHANDLINGSTRATEGY_BINDING);
1,209,199
private void exportHTML(ExportDataDumper eDD, String viewName) {<NEW_LINE>// Header<NEW_LINE>// NOI18N<NEW_LINE>StringBuffer result = new StringBuffer("<HTML><HEAD><meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" /><TITLE>" + viewName + "</TITLE></HEAD><BODY><TABLE border=\"1\"><tr>");<NEW_LINE>fo...
sortedClassNames[i]) + "</td>");
1,646,902
// ----- static methods -----<NEW_LINE>public static Object invokeMethod(final SecurityContext securityContext, final Method method, final Object entity, final Map<String, Object> propertySet, final EvaluationHints hints) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>// new structure: first parameter is always se...
(args, 0, securityContext));
381,856
public static ProjectInfo createProjectInfo(String name, Map<String, Object> vals) throws IOException {<NEW_LINE>String artifact = (String) vals.getOrDefault(TemplateUtils.PARAM_ARTIFACT_ID, name);<NEW_LINE>String group = (String) vals.get(TemplateUtils.PARAM_GROUP_ID);<NEW_LINE>String version = (String) vals.getOrDefa...
group, artifact, version, pkg);
499,140
// Driver Program<NEW_LINE>public static void main(String[] args) {<NEW_LINE>// Just generate data<NEW_LINE>Random r = ThreadLocalRandom.current();<NEW_LINE>int size = 100;<NEW_LINE>int maxElement = 100000;<NEW_LINE>Integer[] integers = IntStream.generate(() -> r.nextInt(maxElement)).limit(size).sorted().boxed().toArra...
(size - 1)] + 1;
163,053
public FileVisitResult preVisitDirectory(java.nio.file.Path dir, BasicFileAttributes attrs) throws IOException {<NEW_LINE>int count = dir.getNameCount();<NEW_LINE>if (count == 1) {<NEW_LINE>return FileVisitResult.CONTINUE;<NEW_LINE>}<NEW_LINE>if (count == 2) {<NEW_LINE>// e.g. /9A/java.base<NEW_LINE>java.nio.file.Path ...
, JRTUtil.sanitizedFileName(mod));
441,898
private static void fillMainAttributes(Definition definition, ResourceListing listing, String basePath) {<NEW_LINE>definition.setVersion(listing.getApiVersion());<NEW_LINE>Contract contract = new Contract();<NEW_LINE>if (listing.getInfo() != null) {<NEW_LINE>Contact contact = new Contact();<NEW_LINE>contact.setEmail(li...
getInfo().getDescription());
1,021,982
public void createUser(ActionRequest request, ActionResponse response) {<NEW_LINE>Context context = request.getContext();<NEW_LINE>User user = context.asType(User.class);<NEW_LINE>EmployeeRepository employeeRepository = Beans.get(EmployeeRepository.class);<NEW_LINE>User employeeUser = new User();<NEW_LINE>employeeUser....
setActivateOn(user.getActivateOn());
1,012,498
private static List<Op02WithProcessedDataAndRefs> copyBlock(List<Op02WithProcessedDataAndRefs> orig, InstrIndex afterThis) {<NEW_LINE>List<Op02WithProcessedDataAndRefs> output = ListFactory.newList(orig.size());<NEW_LINE>Map<Op02WithProcessedDataAndRefs, Op02WithProcessedDataAndRefs> fromTo = MapFactory.newMap();<NEW_L...
ListFactory.newList(in.exceptionGroups);
777,762
public Query toQuery(Class<?> clazz, String whereClause, Object[] params, String trxName) {<NEW_LINE>String tableName;<NEW_LINE>// Get Table_Name by Class<NEW_LINE>// TODO: refactor<NEW_LINE>try {<NEW_LINE>tableName = (String) clazz.getField("Table_Name").get(null);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new A...
" AND " + I_AD_Org.COLUMNNAME_AD_Org_ID + "=?");
782,136
public static void showPopup(JComponent content, String title, int x, int y) {<NEW_LINE>if (popupWindow != null) {<NEW_LINE>// Content already showing<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Toolkit.getDefaultToolkit().addAWTEventListener(hideListener, AWTEvent.MOUSE_EVENT_MASK);<NEW_LINE>// NOT using PopupFactory<NEW_LIN...
getMainWindow().addWindowStateListener(hideListener);
890,729
private ObjectInstance dumpSource(InteropLibrary iop, HeapDump seg, Object source) throws IOException, UnsupportedMessageException {<NEW_LINE>String srcName = readMember(iop, source, "name", iop::asString);<NEW_LINE>String mimeType = asStringOrNull(iop, source, "mimeType");<NEW_LINE>String uri = asStringOrNull(iop, sou...
Object.class).dumpClass();
1,746,804
public void visitRange(Range range) {<NEW_LINE>if (range.getCount() > 0) {<NEW_LINE>range.setAvg(range.getSum() / range.getCount());<NEW_LINE>}<NEW_LINE>final Map<Integer, AllDuration> allDurations = range.getAllDurations();<NEW_LINE>if (!allDurations.isEmpty() && !range.getClearDuration()) {<NEW_LINE>final Map<Integer...
(lineValues.get(PERCENT_9999));
1,693,617
private void addSource(Artifact source, Label label) {<NEW_LINE>Preconditions.checkNotNull(featureConfiguration);<NEW_LINE>Preconditions.checkState(!CppFileTypes.CPP_HEADER.matches<MASK><NEW_LINE>// We assume TreeArtifacts passed in are directories containing proper sources for compilation.<NEW_LINE>if (!sourceCategory...
(source.getExecPath()));
243,418
public static void main(String[] args) {<NEW_LINE>LOGGER.info("---------------------");<NEW_LINE>LOGGER.info("KEY VAULT - SECRETS");<NEW_LINE>LOGGER.info("IDENTITY - CREDENTIAL");<NEW_LINE>LOGGER.info("---------------------");<NEW_LINE>// Configure authority host from AZURE_CLOUD<NEW_LINE>String azureCloud = System.get...
serviceVersion(serviceVersion).buildClient();
113,308
private void logSummary() {<NEW_LINE>try (CoreTransaction.Data txn = session.transaction(READ)) {<NEW_LINE>LOG.debug("Total 'thing' count: " + txn.graphMgr.data().stats().thingVertexTransitiveCount(txn.graphMgr.schema<MASK><NEW_LINE>long hasCount = 0;<NEW_LINE>NavigableSet<TypeVertex> allTypes = txn.graphMgr.schema().g...
().rootThingType()));
1,855,184
public static void main(final String[] args) {<NEW_LINE>final MediaDriver driver = EMBEDDED_MEDIA_DRIVER ? MediaDriver.launchEmbedded() : null;<NEW_LINE>final Aeron.Context ctx = new Aeron.Context();<NEW_LINE>if (EMBEDDED_MEDIA_DRIVER) {<NEW_LINE>ctx.aeronDirectoryName(driver.aeronDirectoryName());<NEW_LINE>}<NEW_LINE>...
out.println("Using exclusive publications " + EXCLUSIVE_PUBLICATIONS);
364,818
void initializeHostContext(PolyglotLanguageContext context, PolyglotContextConfig newConfig) {<NEW_LINE>try {<NEW_LINE>Object contextImpl = context.getContextImpl();<NEW_LINE>if (contextImpl == null) {<NEW_LINE>throw new AssertionError("Host context not initialized.");<NEW_LINE>}<NEW_LINE>this.hostContextImpl = context...
AssertionError("The engine host language must register a service of type:" + AbstractHostService.class);
769,824
public void refresh() {<NEW_LINE>setDate(DateUtil.yyyymmdd(TimeUtil.getCurrentTime()));<NEW_LINE>collectObj();<NEW_LINE>Integer[] serverIds = serverObjMap.keySet().toArray(new Integer[serverObjMap.size()]);<NEW_LINE>final TreeSet<XLogData> tempSet = new TreeSet<XLogData>(new XLogDataComparator());<NEW_LINE>int limit = ...
tcp = TcpProxy.getTcpProxy(serverId);
81,930
public void shutdown(long quietPeriod, long timeout, TimeUnit unit) {<NEW_LINE>if (dnsMonitor != null) {<NEW_LINE>dnsMonitor.stop();<NEW_LINE>}<NEW_LINE>connectionWatcher.stop();<NEW_LINE>List<CompletableFuture<Void>> futures = new ArrayList<>();<NEW_LINE>for (MasterSlaveEntry entry : getEntrySet()) {<NEW_LINE>futures....
timeout, unit).syncUninterruptibly();
1,514,385
public static boolean didAffinitizedLeadersChange(PlacementInfo oldPlacementInfo, PlacementInfo newPlacementInfo) {<NEW_LINE>// Map between the old placement's AZs and the affinitized leader info.<NEW_LINE>HashMap<UUID, Boolean> oldAZMap = new HashMap<>();<NEW_LINE>for (PlacementCloud oldCloud : oldPlacementInfo.cloudL...
oldAZ.uuid, oldAZ.isAffinitized);
1,006,390
// Make sure any temp used by the export is not optimized away<NEW_LINE>private void optimizeGather2(Constructor ct, MapSTL<Long, OptimizeRecord> recs, int secnum) {<NEW_LINE>ConstructTpl tpl;<NEW_LINE>if (secnum < 0) {<NEW_LINE>tpl = ct.getTempl();<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (tpl == null)...
tpl = ct.getNamedTempl(secnum);
1,330,081
private static FlatTrace.Context handleReturn(final ProtocolSchedule protocolSchedule, final TransactionTrace transactionTrace, final Block block, final TraceFrame traceFrame, final Deque<FlatTrace.Context> tracesContexts, final FlatTrace.Context currentContext) {<NEW_LINE>final FlatTrace.Builder traceFrameBuilder = cu...
.getBuilder().incSubTraces();
1,102,978
private void draw(Collection<JRPrintElement> elements) throws JRException {<NEW_LINE>if (elements != null && elements.size() > 0) {<NEW_LINE>Shape clipArea = grx.getClip();<NEW_LINE>for (Iterator<JRPrintElement> it = elements.iterator(); it.hasNext(); ) {<NEW_LINE>JRPrintElement element = it.next();<NEW_LINE>boolean is...
element.accept(drawVisitor, elementOffset);
1,792,246
public static void main(String[] args) {<NEW_LINE>AmazonGuardDuty guardduty = AmazonGuardDutyClientBuilder.defaultClient();<NEW_LINE>// Set detectorId to the detectorId returned by GuardDuty's<NEW_LINE>// ListDetectors() for your current AWS Account/Region<NEW_LINE>final String detectorId = "ceb03b04f96520a8884c959f3e9...
response = guardduty.listFindings(request);
759,786
public static void init(BiConsumer<Block, RenderType> consumer) {<NEW_LINE>consumer.accept(ModBlocks.defaultAltar, RenderType.cutout());<NEW_LINE>consumer.accept(ModBlocks.forestAltar, RenderType.cutout());<NEW_LINE>consumer.accept(ModBlocks.plainsAltar, RenderType.cutout());<NEW_LINE>consumer.accept(ModBlocks.mountain...
spectralPlatform, RenderType.translucent());
1,769,042
public static void main(String[] args) throws IOException {<NEW_LINE>Options options = new Options();<NEW_LINE>JCommander unused = new JCommander(options, args);<NEW_LINE>Path bugPatterns = Paths.get(options.bugPatterns);<NEW_LINE>if (!Files.exists(bugPatterns)) {<NEW_LINE>usage("Cannot find bugPatterns file: " + optio...
baseUrl, input -> input.severity);
123,727
private void updateText(Intent intent) {<NEW_LINE>int id = intent.getIntExtra(Attack.ATTACK_ID, -1);<NEW_LINE>if (attacks.containsKey(id)) {<NEW_LINE>Attack attack = attacks.get(id);<NEW_LINE>if (intent.hasExtra(Attack.ATTACK_UPDATE_TEXT) && intent.hasExtra(Attack.ATTACK_UPDATE_REASON)) {<NEW_LINE>String updateText = i...
"ATTACK_TYPE", attack.getTypeString());
1,586,341
public void updateNodeSubscriptions(UpdateSubscriptionsBulkRequest body, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' w...
, apiClient.parameterToString(xSdsAuthToken));
1,636,567
public void doFormat(int depth, Hints formatOption, FormatWriter writer) throws IOException {<NEW_LINE>String fixedString = StringUtils.repeat(' ', depth * fixedLength);<NEW_LINE>//<NEW_LINE>writer.write(fixedString + "if (");<NEW_LINE>SwitchExpression switchExpr = this.testBlockSet.get(0);<NEW_LINE>switchExpr.testExpr...
writer.write(fixedString + "else ");
1,013,858
private Map<JsName, JsLiteral> renameJsSymbols(PermutationProperties properties, JavaToJavaScriptMap jjsmap) throws UnableToCompleteException {<NEW_LINE>Map<JsName, JsLiteral> internedLiteralByVariableName = null;<NEW_LINE>try {<NEW_LINE>switch(options.getOutput()) {<NEW_LINE>case OBFUSCATED:<NEW_LINE>internedLiteralBy...
runPrettyNamer(options, properties, jjsmap);
614,429
public static void dumpDataflowInformation(Method method, CFG cfg, ValueNumberDataflow vnd, IsNullValueDataflow inv, @CheckForNull UnconditionalValueDerefDataflow dataflow, @CheckForNull TypeDataflow typeDataflow) throws DataflowAnalysisException {<NEW_LINE>System.out.println("\n\n{ UnconditionalValueDerefAnalysis anal...
+ typeDataflow.getFactAtLocation(loc));
1,479,201
ImmutableList<TypeMirror> erasedParameterTypes(ExecutableElement method, TypeElement in) {<NEW_LINE>if (method.getEnclosingElement().equals(in)) {<NEW_LINE>ImmutableList.Builder<TypeMirror> params = ImmutableList.builder();<NEW_LINE>for (VariableElement param : method.getParameters()) {<NEW_LINE>params.add(typeUtils.er...
> actuals = declared.getTypeArguments();
135,046
public synchronized CompletableFuture<Void> listen(InetSocketAddress address, Consumer<GrpcMessagingConnection> listener) {<NEW_LINE>// Return existing future if building currently.<NEW_LINE>if (mListenFuture != null && !mListenFuture.isCompletedExceptionally()) {<NEW_LINE>return mListenFuture;<NEW_LINE>}<NEW_LINE>LOG....
LOG.info("Successfully started messaging server at: {}", bindAddress);
221,890
public String[] authorize(URL home) {<NEW_LINE>FormLogin panel = new FormLogin();<NEW_LINE>String server = HudsonManager.simplifyServerLocation(home.toString(), true);<NEW_LINE>String username = loginPrefs(<MASK><NEW_LINE>if (username != null) {<NEW_LINE>panel.userField.setText(username);<NEW_LINE>char[] savedPassword ...
).get(server, null);
1,788,756
private void performCheck(int idx, HashBucket bucket) {<NEW_LINE>if (bucket.getTrieBitLen() > bitLen)<NEW_LINE>error("[%d] Bucket %d has bit length longer than the dictionary's (%d, %d)", idx, bucket.getId(), bucket.getTrieBitLen(), bitLen);<NEW_LINE>// Check the bucket hash against the slot it's in.<NEW_LINE>// Conver...
rec = bucket.get(i);
703,542
public IMessage onMessage(PacketRequestMissingItems message, MessageContext ctx) {<NEW_LINE>EntityPlayerMP player = ctx.getServerHandler().player;<NEW_LINE>if (player.openContainer.windowId == message.windowId && player.openContainer instanceof InventoryPanelContainer) {<NEW_LINE>InventoryPanelContainer <MASK><NEW_LINE...
ipc = (InventoryPanelContainer) player.openContainer;
233,480
private BatchFinderResult<RecordTemplatePlaceholder, RecordTemplatePlaceholder, RecordTemplatePlaceholder> buildBatchFinderResult(RecordDataSchema batchFinderMetadataSchema, RecordTemplate batchFinderCriteria) {<NEW_LINE>final List<RecordTemplatePlaceholder> results = new ArrayList<>();<NEW_LINE>results.add(generateEnt...
= new RecordTemplatePlaceholder(metadataDataMap, batchFinderMetadataSchema);
1,437,811
static boolean equalsImpl(List<?> thisList, @CheckForNull Object other) {<NEW_LINE>if (other == checkNotNull(thisList)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!(other instanceof List)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<?> otherList = (List<?>) other;<NEW_LINE>int size = thisList.size();<NEW_LIN...
), otherList.iterator());
1,345,828
protected void layoutChildren(LayoutContext c, int contentStart) {<NEW_LINE>ensureChildren(c);<NEW_LINE>// If we have a running footer, we need its dimensions right away<NEW_LINE>boolean running = c.isPrint() && getStyle().isPaginateTable();<NEW_LINE>if (running) {<NEW_LINE>int headerHeight = layoutRunningHeader(c);<NE...
super.layoutChildren(c, contentStart);
1,530,879
public void run(ITextSelection selection) {<NEW_LINE>if (!(getSite() instanceof IEditorSite)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IWorkbenchPart part = ((IEditorSite) getSite()).getPart();<NEW_LINE>if (!(part instanceof GroovyEditor)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GroovyEditor groovyEditor = (GroovyEditor) ...
GroovyCore.logException("Exception when formatting", e);
1,578,685
protected void onDraw(Canvas canvas) {<NEW_LINE>getDrawingRect(bounds);<NEW_LINE>int maxPadding = (int) Math.min(bounds.right / 2, bounds.bottom / 2);<NEW_LINE>int padding = (int) Math.min(borderWidth, maxPadding);<NEW_LINE>RectF innerRect = new RectF(bounds.left + padding, bounds.top + padding, bounds.right - padding,...
0, PorterDuff.Mode.CLEAR);