idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
560,123
public boolean checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure) {<NEW_LINE>for (int i = 0; i < callBinding.operands().size(); i++) {<NEW_LINE>final SqlNode operand = callBinding.operands().get(i);<NEW_LINE>if (literalOperands.contains(i)) {<NEW_LINE>// Verify that 'operand' is a literal.<NEW_LINE>i...
throwOnFailure, callBinding, SqlCallBinding::newValidationSignatureError);
1,099,775
protected synchronized Node[] createNodes(Node key) {<NEW_LINE>if (fileNodes.containsKey(key)) {<NEW_LINE>return new Node[] { new Wrapper(key, fileNodes.get(key), true) };<NEW_LINE>}<NEW_LINE>final java.util.Map<Node, java.util.Map<AnalyzerFactory, List<ErrorDescription>>> fileNodesInside = new HashMap<Node, java.util....
List<ErrorDescription>>>();
1,378,428
private static String findInstallArea() {<NEW_LINE>// NOI18N<NEW_LINE>String ia = System.getProperty("netbeans.home");<NEW_LINE>LOG.log(Level.FINE, "Home is {0}", ia);<NEW_LINE>// NOI18N<NEW_LINE>String rest = System.getProperty("netbeans.dirs");<NEW_LINE>if (rest != null) {<NEW_LINE>for (String c : rest.split(File.pat...
prefix = findCommonPrefix(ia, c);
890,297
private void updateVersionW(boolean isConflict) {<NEW_LINE>DependencyGraphScene<MASK><NEW_LINE>assert scene.supportsVersions();<NEW_LINE>GraphNode<I> targetNode = scene.getGraphNodeRepresentant(edge.getTarget());<NEW_LINE>if (targetNode == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int includedConflictType = targetNo...
<I> scene = getDependencyGraphScene();
1,498,396
private List<PluginProtos.CodeGeneratorResponse.File> buildFile(ServiceContext context) {<NEW_LINE>List<PluginProtos.CodeGeneratorResponse.File> files = new ArrayList<>();<NEW_LINE>if (context.multipleFiles && enableMultipleTemplateFiles()) {<NEW_LINE>String content = applyTemplate(getTemplateFileName(), context);<NEW_...
applyTemplate(getInterfaceTemplateFileName(), context);
671,238
private static boolean registerServerInstanceFO(FileObject serverInstanceDir, String url, String displayName, String serverRoot, String domainRoot, String domainName, String port, String username, String password, String javaOpts, Version version) {<NEW_LINE>// NOI18N<NEW_LINE>String name = FileUtil.findFreeFileName(se...
= new StringBuilder(WLInstantiatingIterator.DEFAULT_MAC_MEM_OPTS_HEAP);
289,833
public CodegenExpression codegen(EnumForgeCodegenParams premade, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpressionField typeMember = codegenClassScope.addFieldUnshared(true, ObjectArrayEventType.EPTYPE, cast(ObjectArrayEventType.EPTYPE, EventTypeUtility.resolveType...
eventType, EPStatementInitServices.REF)));
798,338
public Object invokeExportedMethod(String methodName, Collection<Object> arguments) throws NoSuchMethodException, RuntimeException {<NEW_LINE>Method method = mExportedMethods.get(methodName);<NEW_LINE>if (method == null) {<NEW_LINE>throw new NoSuchMethodException("Module " + getName() + "does not export method " + meth...
), expectedArgumentClasses[i]));
1,810,648
private void loadNode538() {<NEW_LINE>SessionSecurityDiagnosticsArrayTypeNode node = new SessionSecurityDiagnosticsArrayTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_SessionSecurityDiagnosticsArray, new QualifiedName(0, "SessionSecurityDiagnosticsArray"), new LocalizedText("en", "SessionSecurityDiag...
(1), 0.0, false);
375,681
protected StateFactory<WindowState> init(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, StreamEventClonerHolder streamEventClonerHolder, boolean outputExpectsExpiredEvents, boolean findToBeExecuted, SiddhiQueryContext siddhiQueryContext) {<NEW_LINE>this.outputExpectsExpiredEvents = output...
"Batch window should have at most one parameter (<int> " + "chunkLength) greater than zero. But found value 'chunkLength = " + length + " ' ");
477,380
private Mono<Response<HubInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String hubName, HubInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgu...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
667,015
// V3: Copied from SSLUtils to break dependency of SSLUtils on this class<NEW_LINE>public static synchronized void initStoresAtStartup() throws Exception {<NEW_LINE>if (initialized) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ServiceLocator habitat = Globals.getDefaultHabitat();<NEW_LINE>SSLUtils sslUtils = habitat.getServi...
ctx = SSLContext.getInstance("TLS");
233,560
private UpdateShipmentScheduleRequest toUpdateShipmentScheduleRequestOrNull(@NonNull final JsonCreateShipmentInfo createShipmentInfo, @NonNull final ShipmentService.ShippingInfoCache cache) {<NEW_LINE>final LocalDateTime deliveryDate = createShipmentInfo.getMovementDate();<NEW_LINE>final BigDecimal qtyToDeliverInStocki...
, countryCodeFactory).orElse(null);
1,577,167
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>// App Engine strips all external X-* request headers, so we can trust this is set by App Engine.<NEW_LINE>// https://cloud.google.com/appengine/docs/flexible/java/scheduling-jobs-with-cron-yaml#validating_cron_...
processWhoStats(rows, countryData, globalData);
1,747,140
public void onJobCompleted(Job job) {<NEW_LINE>// to set jobID to CS<NEW_LINE>try {<NEW_LINE>if (job.isSucceed()) {<NEW_LINE>CSEntranceHelper.registerCSRSData(job);<NEW_LINE>} else {<NEW_LINE>JobRequest jobRequest = this.entranceContext.getOrCreateEntranceParser().parseToJobRequest(job);<NEW_LINE>if (null == jobRequest...
logger.error("Failed to register cs rs data ", e);
333,045
final DeleteApplicationVpcConfigurationResult executeDeleteApplicationVpcConfiguration(DeleteApplicationVpcConfigurationRequest deleteApplicationVpcConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationVpcConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
434,111
public void process(final HttpServletRequest request, final HttpServletResponse response, final FilterChain chain) throws IOException, ServletException {<NEW_LINE>final RequestManager requestManager = ComponentUtil.getRequestManager();<NEW_LINE>if (!requestManager.findUserBean(FessUserBean.class).map(user -> user.hasRo...
WebApiException(HttpServletResponse.SC_FORBIDDEN, "Invalid session.");
1,677,780
protected List<? extends JComponent> createPreviewElements() {<NEW_LINE><MASK><NEW_LINE>basic.putClientProperty(StyleId.STYLE_PROPERTY, getStyleId());<NEW_LINE>UILanguageManager.registerComponent(basic, getExampleLanguageKey("styled.text.basic"));<NEW_LINE>final JButton group1 = new JButton();<NEW_LINE>group1.putClient...
final JButton basic = new JButton();
1,387,237
private static void example1() {<NEW_LINE>int n = 10;<NEW_LINE>List<List<Edge>> g = createEmptyGraph(n);<NEW_LINE>addUndirectedEdge(g, 0, 1, 5);<NEW_LINE>addUndirectedEdge(g, 1, 2, 4);<NEW_LINE>addUndirectedEdge(g, 2, 9, 2);<NEW_LINE>addUndirectedEdge(g, 0, 4, 1);<NEW_LINE>addUndirectedEdge(g, 0, 3, 4);<NEW_LINE>addUnd...
g, 9, 8, 0);
1,196,609
public void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>addPreferencesFromResource(R.xml.plugins_preference);<NEW_LINE>helper = new RemotePluginCommunicationHelper(getActivity());<NEW_LINE>helper.begin();<NEW_LINE>Set<String> eventSkillsInUse = getEventSkillsInU...
(R.string.key_pref_enabled_condition_plugins));
1,104,420
public AdminAccount unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AdminAccount adminAccount = new AdminAccount();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurren...
int originalDepth = context.getCurrentDepth();
135,141
public boolean isInstanceHealthy(CommunicationClient instance) {<NEW_LINE>boolean healthy = false;<NEW_LINE>try {<NEW_LINE>if (instance.getCommunicationOptions().getProtocol().supportHeartbeat()) {<NEW_LINE>Request request = new RpcRequest();<NEW_LINE>request.reset();<NEW_LINE>request.setHeartbeat(true);<NEW_LINE>reque...
getCommunicationOptions().getWriteTimeoutMillis());
1,561,225
final DeleteTrialComponentResult executeDeleteTrialComponent(DeleteTrialComponentRequest deleteTrialComponentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTrialComponentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,836,603
public Device unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Device device = new Device();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c...
class).unmarshall(context));
1,605,661
private static long toLong(Sequence seq, int radix, boolean isBool, boolean bigEnding) {<NEW_LINE>int size = seq.length();<NEW_LINE>long result = 0;<NEW_LINE>if (bigEnding) {<NEW_LINE>for (int i = size; i > 0; --i) {<NEW_LINE>Object obj = seq.getMem(i);<NEW_LINE>if (obj instanceof Number) {<NEW_LINE>int n = ((Number) o...
Number) obj).intValue();
440,251
public FileOutputStream startWrite() throws IOException {<NEW_LINE>// Rename the current file so it may be used as a backup during the next read<NEW_LINE>if (mBaseName.exists()) {<NEW_LINE>if (!mBackupName.exists()) {<NEW_LINE>if (!mBaseName.renameTo(mBackupName)) {<NEW_LINE>Log.w("AtomicFile", "Couldn't rename file " ...
throw new IOException("Couldn't create directory " + mBaseName);
813,845
public InteractionResult useOn(UseOnContext ctx) {<NEW_LINE>Level world = ctx.getLevel();<NEW_LINE>BlockPos pos = ctx.getClickedPos();<NEW_LINE>BlockState state = world.getBlockState(pos);<NEW_LINE>ItemStack stack = ctx.getItemInHand();<NEW_LINE>if (state.is(Blocks.DIRT) || state.is(Blocks.GRASS_BLOCK) && type != Islan...
addBlockSwapper(world, pos, type);
397,952
synchronized protected void materialize(final ManagedResourceService resourceService, final IAllocationContext allocationContext) {<NEW_LINE>if (materialized != null)<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>// list of the allocations created to receive the data.<NEW_LINE>final List<IAllocation> received = new LinkedLi...
DirectBufferPoolAllocator.put(buf, tmp);
1,715,617
private void updateView() {<NEW_LINE>vbox.getChildren().clear();<NEW_LINE>for (CalendarSource source : getSkinnable().getCalendarSources()) {<NEW_LINE>source.getCalendars().removeListener(updater);<NEW_LINE>source.getCalendars().addListener(updater);<NEW_LINE>VBox box = new VBox(8);<NEW_LINE>box.<MASK><NEW_LINE>for (Ca...
getStyleClass().add("single-calendar-group");
41,723
public void unlockResourcesOfServer(final ODatabaseDocumentInternal database, final String serverName) {<NEW_LINE>final int <MASK><NEW_LINE>final Iterator<ODistributedTxContext> pendingReqIterator = activeTxContexts.values().iterator();<NEW_LINE>while (pendingReqIterator.hasNext()) {<NEW_LINE>final ODistributedTxContex...
nodeLeftId = manager.getNodeIdByName(serverName);
290,045
private void queueRetry(List<QCMutation> mutations, HostAndPort server) {<NEW_LINE>if (timeout < Long.MAX_VALUE) {<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE>ArrayList<QCMutation> mutations2 = new ArrayList<>(mutations.size());<NEW_LINE>for (QCMutation qcm : mutations) {<NEW_LINE>qcm.resetDelay();<NEW_LI...
(server.toString()));
1,445,021
private void deleteJobMetadataForUpdate(RedisCommands<String, String> commands, Job job) {<NEW_LINE>String id = job.getId().toString();<NEW_LINE>commands.zrem<MASK><NEW_LINE>Stream.of(StateName.values()).forEach(stateName -> commands.zrem(jobQueueForStateKey(keyPrefix, stateName), id));<NEW_LINE>Stream.of(StateName.val...
(scheduledJobsKey(keyPrefix), id);
1,843,997
private static Pair<InputStream, Integer> prepareDownload(String url, @NullAllowed ProgressHandle progressHandle) throws NetworkException, InterruptedException {<NEW_LINE>try {<NEW_LINE>int contentLength = -1;<NEW_LINE>URL resource = new URL(url);<NEW_LINE>if (progressHandle != null) {<NEW_LINE>progressHandle.switchToI...
(HttpURLConnection) resource.openConnection();
1,070,199
public int[] relativeSortArray(int[] arr1, int[] arr2) {<NEW_LINE>int[] result = new int[arr1.length];<NEW_LINE>List<Integer> left <MASK><NEW_LINE>Map<Integer, Integer> map = new HashMap<Integer, Integer>();<NEW_LINE>for (int num : arr2) {<NEW_LINE>map.put(num, 0);<NEW_LINE>}<NEW_LINE>for (int num : arr1) {<NEW_LINE>if...
= new ArrayList<Integer>();
381,208
private void doExperiment(int numberOfParticles, int simulationTime, double hertz) {<NEW_LINE>double baseLineTemperature = doBaselineTest(numberOfParticles, simulationTime, hertz);<NEW_LINE>double[] testTemperatures = { baseLineTemperature / 4, baseLineTemperature / 2, baseLineTemperature * 2, baseLineTemperature * 4 }...
collisionSystemWithTemperature.simulate(simulationTime, hertz);
989,869
public Collection<? extends ProjectProblem> call() throws Exception {<NEW_LINE>Object wasprocessed = prj.getContextValue(MavenModelProblemsProvider.class.getName());<NEW_LINE>if (wasprocessed != null) {<NEW_LINE>Collection<ProjectProblem> cached = problemsCache.get();<NEW_LINE>LOG.log(<MASK><NEW_LINE>if (cached != null...
Level.FINER, "Project was processed #2, cached is: {0}", cached);
11,203
public Request<StartProjectVersionRequest> marshall(StartProjectVersionRequest startProjectVersionRequest) {<NEW_LINE>if (startProjectVersionRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(StartProjectVersionRequest)");<NEW_LINE>}<NEW_LINE>Request<StartProjectVersionRequ...
t.getMessage(), t);
1,094,471
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>final InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<...
, va(ReactorConstants.REACTOR_NETTY));
1,158,800
protected void layoutChildren(final double x, final double y, final double w, final double h) {<NEW_LINE>if (invalid) {<NEW_LINE>if (((JFXButton) getSkinnable()).getRipplerFill() == null) {<NEW_LINE>// change rippler fill according to the last LabeledText/Label child<NEW_LINE>for (int i = getChildren().size() - 1; i >=...
i)).getTextFill());
1,376,988
final DeleteIntegrationResult executeDeleteIntegration(DeleteIntegrationRequest deleteIntegrationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIntegrationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,709,461
public String format(LogRecord r) {<NEW_LINE>// initial guess<NEW_LINE>StringBuilder sbuf = new StringBuilder(300);<NEW_LINE>String levelName = LogLevel.getVespaLogLevel(r.getLevel()).toString().toLowerCase();<NEW_LINE>String component = r.getLoggerName();<NEW_LINE>// format the time<NEW_LINE>sbuf.append(VespaFormat.fo...
(".").append(component);
20,770
public void addMoveAction(String from_file_or_resource, String to_file) throws UpdateException {<NEW_LINE>// System.out.println( "move action:" + from_file_or_resource + " -> " + to_file );<NEW_LINE>if (!from_file_or_resource.contains(File.separator)) {<NEW_LINE>from_file_or_resource = install_dir.toString() + File.sep...
() + "' isn't writable, this update will probably fail." + " Check permissions and retry the update"));
787,900
private void addEdgeColoringControls(final DefaultFormBuilder formBuilder) {<NEW_LINE>TranslatedObject[] automaticLayoutTypes = TranslatedObject.fromEnum(AutomaticEdgeColor.class.getSimpleName() + ".", AutomaticEdgeColor.Rule.class);<NEW_LINE>mAutomaticEdgeColorComboBox = JComboBoxFactory.create(automaticLayoutTypes);<...
selectedItem.getObject(), colorCount);
1,510,366
public void map(InfoMap infoMap) {<NEW_LINE>infoMap.put(new Info("std::set<std::string>").pointerTypes("StringSet").define());<NEW_LINE>infoMap.put(new Info("std::list<std::string>").pointerTypes("StringList").define());<NEW_LINE>infoMap.put(new Info("std::list<modsecurity::RuleMessage>").pointerTypes("RuleMessageList"...
("std::list<std::pair<std::string,std::string> >").skip());
583,983
protected List<Job> reconfigureJobs(List<Job> historyCleanupJobs, int degreeOfParallelism, int[][] minuteChunks) {<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>JobManager jobManager = commandContext.getJobManager();<NEW_LINE>int size = Math.min(degreeOfParallelism, historyCleanupJobs.s...
HISTORY_CLEANUP_JOB_DECLARATION.reconfigure(historyCleanupContext, historyCleanupJob);
103,865
public static DescribeWatchTasksResponse unmarshall(DescribeWatchTasksResponse describeWatchTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeWatchTasksResponse.setRequestId(_ctx.stringValue("DescribeWatchTasksResponse.RequestId"));<NEW_LINE>describeWatchTasksResponse.setSuccess(_ctx.booleanValue("DescribeWat...
(_ctx.stringValue("DescribeWatchTasksResponse.Message"));
896,231
public static void main(String[] args) throws Exception {<NEW_LINE>BufferedReader br = new // use BufferedReader<NEW_LINE>BufferedReader(new InputStreamReader(System.in));<NEW_LINE>PrintWriter pw = new // and PrintWriter<NEW_LINE>// = fast IO<NEW_LINE>PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));...
(hi, xs[i]);
687,665
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean isVarArgs(com.sun.jdi.Method a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionR...
logCallEnd("com.sun.jdi.Method", "isVarArgs", retValue);
1,709,724
private static Binding buildBinding(ItemList list) {<NEW_LINE>// (row or (binding<NEW_LINE>if (list.size() == 0)<NEW_LINE>BuilderLib.broken(list, "Empty list");<NEW_LINE>Item head = list.get(0);<NEW_LINE>if (!head.isSymbolIgnoreCase(Tags.tagRow) && !head.isSymbolIgnoreCase(Tags.tagBinding))<NEW_LINE>BuilderLib.broken(l...
BindingBuilder builder = Binding.builder();
285,687
public static JobLogPo convertJobLog(JobMeta jobMeta) {<NEW_LINE>JobLogPo jobLogPo = new JobLogPo();<NEW_LINE>jobLogPo.setGmtCreated(SystemClock.now());<NEW_LINE>Job job = jobMeta.getJob();<NEW_LINE>jobLogPo.setPriority(job.getPriority());<NEW_LINE>jobLogPo.setExtParams(job.getExtParams());<NEW_LINE>jobLogPo.setInterna...
setMaxRetryTimes(job.getMaxRetryTimes());
449,160
public static Object callMethod1(Object target, String methodN, Object param1, String typeParam1, ClassLoader cl) throws Exception {<NEW_LINE>if (target == null || param1 == null) {<NEW_LINE>debug("Assert: Illegal params " + target + " " + param1);<NEW_LINE>}<NEW_LINE>if (dbg > 0)<NEW_LINE>debug("callMethod1 " + target...
] = cl.loadClass(typeParam1);
455,557
public Object invoke(MethodInvocation invocation) throws Throwable {<NEW_LINE>String method = invocation.getMethod().getName();<NEW_LINE>Object[] arguments = invocation.getArguments();<NEW_LINE>switch(method) {<NEW_LINE>case "addFirst":<NEW_LINE>envCopy.addFirst((PropertySource<?>) arguments[0]);<NEW_LINE>return invoca...
?>) arguments[1]);
1,200,883
private Mono<Response<Void>> deleteWithResponseAsync(String policySetDefinitionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (policySetDefi...
getSubscriptionId(), accept, context);
850,361
protected void doProcessing() {<NEW_LINE>SocketChannel schannel;<NEW_LINE>while ((schannel = connected.poll()) != null) {<NEW_LINE>try {<NEW_LINE>configureSocket(schannel);<NEW_LINE>} catch (IOException e) {<NEW_LINE>Log.error("Cannot configure channel!", e);<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>RapidoidChannel chann...
conn = done.get(i);
1,608,162
protected DataViewComponent createComponent() {<NEW_LINE>final <MASK><NEW_LINE>DataViewComponent dvc = new DataViewComponent(masterViewSupport.getMasterView(), new DataViewComponent.MasterViewConfiguration(false));<NEW_LINE>final CpuViewSupport cpuViewSupport = new CpuViewSupport(model);<NEW_LINE>// NOI18N<NEW_LINE>dvc...
MasterViewSupport masterViewSupport = new MasterViewSupport(model);
1,055,131
public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("@JsonSchema(dynamic=true) @public @buseventtype create json schema JsonEvent();\n" + "@name('s0') select * from JsonEvent#keepall").addListener("s0");<NEW_LINE>String jsonOne = "{\n" + " \"a_string\": \"abc\",\n" + " \"a_number\": 1,\n" + " \"a...
-> assertJsonWrite(jsonThree, event));
277,458
public Listener unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>Listener listener = new Listener();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true) {<N...
XMLEvent xmlEvent = context.nextEvent();
1,852,948
private I_C_SubscriptionProgress createDelivery(@NonNull final I_C_Flatrate_Term term, @NonNull final Timestamp eventDate, final int seqNo) {<NEW_LINE>final I_C_SubscriptionProgress delivery = InterfaceWrapperHelper.newInstance(I_C_SubscriptionProgress.class, term);<NEW_LINE>delivery.setAD_Org_ID(term.getAD_Org_ID());<...
.class).retrieveProductAndCategoryIdByProductId(productId);
918,494
public File pullFile(final String groupName, final String path) throws DotDataException {<NEW_LINE>final String groupNameLC = groupName.toLowerCase();<NEW_LINE>final String pathLC = path.toLowerCase();<NEW_LINE>final MutableObject<File> file = new MutableObject<>(null);<NEW_LINE>try (Connection connection = getConnecti...
.createJoinFile(objectHash, connection));
835,877
public ViewHolderProvider onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>logDebug("onCreateViewHolder");<NEW_LINE>Display display = ((Activity) context)<MASK><NEW_LINE>DisplayMetrics outMetrics = new DisplayMetrics();<NEW_LINE>display.getMetrics(outMetrics);<NEW_LINE>View v = LayoutInflater.from(parent.g...
.getWindowManager().getDefaultDisplay();
1,291,873
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>Display display = ((Activity) context).getWindowManager().getDefaultDisplay();<NEW_LINE>DisplayMetrics metrics = new DisplayMetrics();<NEW_LINE>display.getMetrics(metrics);<NEW_LINE>...
setText(R.string.sms_add_phone_number_dialog_msg_non_achievement_user);
1,840,639
protected void checkParameters(Configuration conf) throws InvalidParameterException {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>int coreNum = conf.getInt(AngelConf.ANGEL_AM_CPU_VCORES, AngelConf.DEFAULT_ANGEL_AM_CPU_VCORES);<NEW_LINE>if (coreNum <= 0) {<NEW_LINE>sb.append(AngelConf.ANGEL_AM_CPU_VCORES +...
AngelConf.ANGEL_WORKER_MEMORY_GB, AngelConf.DEFAULT_ANGEL_WORKER_MEMORY_GB);
276,667
private void delayPenalty(final IntruderRecord intruderRecord, final SessionLabel sessionLabel) {<NEW_LINE>int points = 0;<NEW_LINE>if (intruderRecord != null) {<NEW_LINE>points += intruderRecord.getAttemptCount();<NEW_LINE>// minimum<NEW_LINE>long delayPenalty = Long.parseLong(pwmDomain.getConfig().readAppProperty(App...
readAppProperty(AppProperty.INTRUDER_MAX_DELAY_PENALTY_MS)));
793,860
public void deleteEntry(final DocumentId id) {<NEW_LINE>final IPair<String, Integer> prefixAndId = toPrefixAndEntryId(id);<NEW_LINE>final <MASK><NEW_LINE>final int entryId = prefixAndId.getRight();<NEW_LINE>if (ID_PREFIX_Attachment.equals(idPrefix)) {<NEW_LINE>final AttachmentEntry entry = attachmentEntryService.getByI...
String idPrefix = prefixAndId.getLeft();
268,708
private static void configure(FleetControllerOptions options, FleetcontrollerConfig config) {<NEW_LINE>options.clusterName = config.cluster_name();<NEW_LINE>options.fleetControllerIndex = config.index();<NEW_LINE>options.fleetControllerCount = config.fleet_controller_count();<NEW_LINE>options.zooKeeperSessionTimeout = ...
.maxInitProgressTime = config.init_progress_time();
1,441,067
public RuleResult execute(final Map<String, String> ruleParam, Map<String, String> resourceAttributes) {<NEW_LINE>logger.debug("========UnusedElasticIpRule started=========");<NEW_LINE>Annotation annotation = null;<NEW_LINE>String associationId = null;<NEW_LINE>String severity = ruleParam.get(PacmanRuleConstants.SEVERI...
issue = new LinkedHashMap<>();
520,367
public void onMessageBatch(List<org.springframework.amqp.core.Message> messages, Channel channel) {<NEW_LINE>Message<?> converted;<NEW_LINE>if (this.converterAdapter.isAmqpMessageList()) {<NEW_LINE>converted = new GenericMessage<>(messages);<NEW_LINE>} else {<NEW_LINE>List<Message<?>> messagingMessages = new ArrayList<...
add(message.getPayload());
1,183,453
/* Finds file when its resource name is given.<NEW_LINE>* The name has the usual format for the {@link ClassLoader#getResource(String)}<NEW_LINE>* method. So it may consist of "package1/package2/filename.ext".<NEW_LINE>* If there is no package, it may consist only of "filename.ext".<NEW_LINE>*<NEW_LINE>* @param name re...
), String.class, true);
1,522,040
public ListRoutesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListRoutesResult listRoutesResult = new ListRoutesResult();<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();
704,744
public BusinessGoals unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BusinessGoals businessGoals = new BusinessGoals();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
1,058,628
public CacheWrapper<Object> deserialize(final byte[] bytes, Type returnType) throws Exception {<NEW_LINE>if (bytes == null || bytes.length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>CacheWrapper<Object> cacheWrapper = new CacheWrapper<>();<NEW_LINE>val byteBuf = new ReadByteBuf(bytes);<NEW_LINE>cacheWrapper.setE...
setLastLoadTime(byteBuf.readLong());
787,889
void fillMenu(JPopupMenu popup, JMenu menu) {<NEW_LINE>assert null != popup || null != menu;<NEW_LINE>FilterRepository filterRep = FilterRepository.getInstance();<NEW_LINE>NotificationFilter activeFilter = notificationManager.getActiveFilter();<NEW_LINE>JRadioButtonMenuItem item = new JRadioButtonMenuItem(new CancelFil...
.add(new ManageFiltersAction());
59,944
private void saveSpecies(final EncogWriteHelper out, final Species species) {<NEW_LINE>out.addColumn("s");<NEW_LINE>out.addColumn(species.getAge());<NEW_LINE>out.addColumn(species.getBestScore());<NEW_LINE>out.addColumn(species.getGensNoImprovement());<NEW_LINE>out.writeLine();<NEW_LINE>for (final Genome genome : speci...
addColumn(neatGenome.getScore());
488,863
public void kill(DataSegment segment) throws SegmentLoadingException {<NEW_LINE>try {<NEW_LINE>Map<String, Object> loadSpec = segment.getLoadSpec();<NEW_LINE>String s3Bucket = MapUtils.getString(loadSpec, "bucket");<NEW_LINE>String s3Path = <MASK><NEW_LINE>String s3DescriptorPath = DataSegmentKiller.descriptorPath(s3Pa...
MapUtils.getString(loadSpec, "key");
589,773
public boolean isValid(Resource resource) {<NEW_LINE>Validate.notNull(resource);<NEW_LINE>if (!resource.getResourceType().name().equals("ELB")) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String instanceCountStr = resource.getAdditionalField("instanceCount");<NEW_LINE>String <MASK><NEW_LINE>if (StringUtils.isBlank(inst...
refASGCountStr = resource.getAdditionalField("referencedASGCount");
1,469,317
private static void convertDeprecatedSocialProviders(UserRepresentation user) {<NEW_LINE>if (user.getSocialLinks() != null && !user.getSocialLinks().isEmpty() && user.getFederatedIdentities() == null) {<NEW_LINE>logger.warnf(<MASK><NEW_LINE>List<FederatedIdentityRepresentation> federatedIdentities = new LinkedList<>();...
"Using deprecated 'socialLinks' configuration in JSON representation for user '%s'. It will be removed in future versions", user.getUsername());
620,182
// static jint NativeGetResourceValue(JNIEnv* env, jclass /*clazz*/, jlong ptr, jint resid,<NEW_LINE>// jshort density, jobject typed_value,<NEW_LINE>// jboolean resolve_references) {<NEW_LINE>@Implementation(minSdk = P)<NEW_LINE>protected static int nativeGetResourceValue(long ptr, @AnyRes int resid, short density, @N...
selected_config.get(), typed_value);
1,306,980
public RelDataType deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call) {<NEW_LINE>final RelDataTypeFactory typeFactory = validator.getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("Rule_Name", 0, typeFactory.createSql...
createSqlType(SqlTypeName.VARCHAR)));
38,544
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// Log.w(Constants.TAG, "EmulatorActivity - onCreate");<NEW_LINE>ThemeManager.applyTheme(this, null);<NEW_LINE>setContentView(R.layout.emulator);<NEW_LINE>setupWindow();<NEW_LINE>_drawerFragment = (EmulatorDrawerF...
(messageStringId), Toast.LENGTH_SHORT);
363,141
private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String galleryName, SharingUpdateInner sharingUpdate, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required a...
error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
1,022,899
public void testPurchaseValueOfSecurityPositionWithTransfers() throws IOException {<NEW_LINE>Client client = ClientFactory.load(// $NON-NLS-1$<NEW_LINE>Issue1879DividendRateOfReturnPerYearWithSecurityInMultipleAccounts.class.// $NON-NLS-1$<NEW_LINE>getResourceAsStream("Issue1879DividendRateOfReturnPerYearWithSecurityIn...
create(client, converter, period);
1,671,184
public Object[] prepareArgs(RootCallTarget callTarget, ParserContext parserContext, DeclarationContext declarationContext, MaterializedFrame parentFrame, Object self, LexicalScope lexicalScope, Object[] arguments) {<NEW_LINE>final RubyRootNode rootNode = RubyRootNode.of(callTarget);<NEW_LINE>final InternalMethod parent...
INSTANCE, EmptyArgumentsDescriptor.INSTANCE, arguments);
150,116
protected static void updateExtractRule(AnnotationExtractRule r, Env env, String expr, Expression action, Expression result) {<NEW_LINE>final MatchedExpression.SingleAnnotationExtractor annotationExtractor = createAnnotationExtractor(env, r);<NEW_LINE>Pattern pattern = env.getStringPattern(expr);<NEW_LINE>StringMatchRe...
env, r.annotationField, valueExtractRule);
367,751
public int compareTo(drainReplicationTable_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTfino(), other.isSetTfino());<NEW...
this.tableName, other.tableName);
1,740,163
final ModifyFleetResult executeModifyFleet(ModifyFleetRequest modifyFleetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyFleetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ModifyFleet");
125,509
public FieldExpression parse(final String expression) {<NEW_LINE>if (!StringUtils.containsAny(expression, SPECIAL_CHARS_MINUS_STAR)) {<NEW_LINE>if (expression.contains(QUESTION_MARK_STRING) && !fieldConstraints.getSpecialChars().contains(QUESTION_MARK)) {<NEW_LINE>throw new IllegalArgumentException("Invalid expression:...
) : dashSplitResult(expression, splitted);
896,506
void fillEventQueuePass2() {<NEW_LINE><MASK><NEW_LINE>// temporary structure to<NEW_LINE>event_q.reserve(m_shape.getTotalPointCount());<NEW_LINE>// sort and find<NEW_LINE>// clusters<NEW_LINE>for (int node = m_event_q.getFirst(-1); node != -1; node = m_event_q.getNext(node)) {<NEW_LINE>int v = m_event_q.getElement(node...
AttributeStreamOfInt32 event_q = new AttributeStreamOfInt32(0);
1,488,173
public static void main(String[] args) throws IOException {<NEW_LINE>if (args.length != 1) {<NEW_LINE>System.out.println("Usage: " + GenderWordFinder.class.getSimpleName() + " <file>");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>List<String> lines = Files.readAllLines(Paths.<MASK><NEW_LINE>Set<String> candidates = ne...
get(args[0]));
328,981
private static boolean matches(TypeCastTree tree, VisitorState state) {<NEW_LINE>Type treeType = ASTHelpers.getType(tree.getType());<NEW_LINE>// If the cast isn't narrowing to an int then don't implicate it in the bug pattern.<NEW_LINE>if (treeType.getTag() != TypeTag.INT) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>/...
((BinaryTree) expression, state);
7,340
private void drawBuffer(Graphics g, FontMetrics fm, String str, int dispStart, int dispEnd, ArrayList<Integer> specials, Bounds bds) {<NEW_LINE>int x = bds.getX();<NEW_LINE>int y = bds.getY();<NEW_LINE>g.setFont(DEFAULT_FONT);<NEW_LINE>if (fm == null)<NEW_LINE>fm = g.getFontMetrics();<NEW_LINE>final <MASK><NEW_LINE>fin...
var asc = fm.getAscent();
412,175
private void performRequest(Result result) {<NEW_LINE>LOGGER.info(<MASK><NEW_LINE>HttpURLConnection connection = null;<NEW_LINE>try {<NEW_LINE>connection = (HttpURLConnection) new URL(url).openConnection();<NEW_LINE>connection.setRequestProperty("User-Agent", VERSION);<NEW_LINE>connection.setRequestProperty("Accept-Enc...
"<" + label + " " + url);
1,240,431
protected void doInAfterTrace(SpanEventRecorder recorder, Object target, Object[] args, Object result, Throwable throwable) {<NEW_LINE>try {<NEW_LINE>if (result instanceof Future && ((Future) result).isCompleted()) {<NEW_LINE>Option value = ((Future) result).value();<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_L...
Complete) success).getResponse();
123,420
final EventSubscription executeModifyEventSubscription(ModifyEventSubscriptionRequest modifyEventSubscriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyEventSubscriptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>aw...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,165,685
public static int blendColors(int paramInt1, int paramInt2, @FloatRange(from = 0.0D, to = 1.0D) float paramFloat) {<NEW_LINE>float f1 = 1.0F - paramFloat;<NEW_LINE>float f2 = Color.alpha(paramInt1);<NEW_LINE>float f3 = Color.alpha(paramInt2);<NEW_LINE>float f4 = Color.red(paramInt1);<NEW_LINE>float f5 = Color.red(param...
* f8 + f9 * paramFloat));
673,381
public void marshall(CreateUserPoolClientRequest createUserPoolClientRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createUserPoolClientRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cre...
createUserPoolClientRequest.getAnalyticsConfiguration(), ANALYTICSCONFIGURATION_BINDING);
277,174
public AggregateResult queryAggData(AggConfig config) throws Exception {<NEW_LINE>Stopwatch stopwatch = Stopwatch.createStarted();<NEW_LINE>SqlHelper sqlHelper = new SqlHelper(getTmpTblName(), false);<NEW_LINE>sqlHelper.setSqlSyntaxHelper(new H2SyntaxHelper().setColumnTypes(getColumnType()));<NEW_LINE>String exec = sql...
"ERROR:" + e.getMessage());
1,628,893
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see java.lang.Runnable#run()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Datapoint dp = null;<NEW_LINE>try {<NEW_LINE>while (true) {<NEW_LINE>sLogger.debug("Autorefresh: Waiting for new item in reader queue");<NEW_LINE>dp = readQueue.take();<NE...
sLogger.debug("Autorefresh: DatapointReaderTask Waiting {} msecs to prevent KNX bus overload", readingPause);
271,473
public static String createCriticalNotificationJSON(String caption, String message, String details, String url) {<NEW_LINE>String returnString = "";<NEW_LINE>try {<NEW_LINE>JsonObject appError = Json.createObject();<NEW_LINE>putValueOrJsonNull(appError, "caption", caption);<NEW_LINE>putValueOrJsonNull(appError, "url", ...
returnString = JsonUtil.stringify(json);
463,447
private ResultSet readTableInfo(ReadOnlyTransaction tx, Dialect dialect) {<NEW_LINE>// retrieve schema information for all tables, as well as aggregating the<NEW_LINE>// number of indexes that cover each column. this will be used to estimate<NEW_LINE>// the number of cells (table column plus indexes) mutated in an upse...
+ " AND t.table_schema = ''" + " GROUP BY t.table_name, t.column_name) AS t" + " USING (table_name, column_name)" + " ORDER BY c.table_name, c.ordinal_position";
1,512,213
protected void onPushOpen(Context context, Intent intent) {<NEW_LINE>// Send a Parse Analytics "push opened" event<NEW_LINE>ParseAnalytics.trackAppOpenedInBackground(intent);<NEW_LINE>String uriString = null;<NEW_LINE>try {<NEW_LINE>JSONObject pushData = new JSONObject(intent.getStringExtra(KEY_PUSH_DATA));<NEW_LINE>ur...
cls = getActivity(context, intent);