idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,820,451
// -------------------------- OTHER METHODS --------------------------<NEW_LINE>public void paintComponent(Graphics g) {<NEW_LINE>if (isOpaque()) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int width = getWidth();<NEW_LINE>int height = getHeight();<NEW_LINE>// Create the gradient paint<NEW_...
0, 0, width, height);
1,496,658
protected void runChild(FrameworkMethod method, RunNotifier notifier) {<NEW_LINE>final Description description = describeChild(method);<NEW_LINE>JsonTestCase jsonTestCaseAnno = method.getMethod().getAnnotation(JsonTestCase.class);<NEW_LINE>if (jsonTestCaseAnno == null) {<NEW_LINE>jsonTestCaseAnno = evalScenarioToJsonTe...
(method), description, notifier);
1,706,635
private void freeInternal(RpcContext rpcContext, LockedInodePath inodePath, FreeContext context) throws FileDoesNotExistException, UnexpectedAlluxioException, IOException, InvalidPathException, AccessControlException {<NEW_LINE>Inode inode = inodePath.getInode();<NEW_LINE>if (inode.isDirectory() && !context.getOptions(...
mInodeTree.getPath(freeInode)));
759,502
protected String messageHtmlName() {<NEW_LINE>if (!myEntry.getDataObject().isValid()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String rawName = getFileLabel();<NEW_LINE>String annotatedName = null;<NEW_LINE>final FileObject entry = myEntry.getFile();<NEW_LINE>try {<NEW_LINE>StatusDecorator status = entry.getFileSyst...
status.annotateName(rawName, files);
700,343
public void execute(DependencyResolveDetails details) {<NEW_LINE>logger.debug("Processing dependency '{}'", details.getRequested());<NEW_LINE>if (isDependencyOnLocalProject(this.project, details)) {<NEW_LINE>logger.debug("'{}' is a local project dependency. Dependency management has not " + "been applied", details.getR...
"No dependency management for dependency '{}'", details.getRequested());
380,567
public AutoScaleVmProfile createAutoScaleVmProfile(CreateAutoScaleVmProfileCmd cmd) {<NEW_LINE>Account owner = _accountDao.findById(cmd.getAccountId());<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>_accountMgr.checkAccess(caller, null, true, owner);<NEW_LINE>long zoneId = cmd.getZoneId(...
findById(DataCenter.class, zoneId);
297,890
public void cancel(String[] protocol, int[] reasonCode, String[] reasonText) {<NEW_LINE>if (_bestResponse.getBestResponse() != null && isFinalResponse(_bestResponse.getBestResponse().getStatus())) {<NEW_LINE>throw new IllegalStateException("Proxy completed");<NEW_LINE>}<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NE...
= new HashSet<String>();
1,452,515
public void onLoad(Bundle savedInstanceState) {<NEW_LINE>if (!hasView())<NEW_LINE>return;<NEW_LINE>ActionBarOwner.Config actionBarConfig = actionBar.getConfig();<NEW_LINE>actionBarConfig = actionBarConfig.withAction(new ActionBarOwner.MenuAction("End", new Action0() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void c...
).getName(), e);
606,307
public TileRead read() {<NEW_LINE>if (mapkey == null)<NEW_LINE>return null;<NEW_LINE>TileRead rslt = null;<NEW_LINE>Connection c = null;<NEW_LINE>boolean err = false;<NEW_LINE>try {<NEW_LINE>c = getConnection();<NEW_LINE><MASK><NEW_LINE>// ResultSet rs = stmt.executeQuery("SELECT HashCode,LastUpdate,Format,Image FROM T...
Statement stmt = c.createStatement();
1,393,460
private double distance(double x1, double y1, double x2, double y2) {<NEW_LINE>Line2D line = new Line2D(x1, y1, x2, y2);<NEW_LINE>double d1 = line.ptSegDist(<MASK><NEW_LINE>double d2 = line.ptSegDist(this.x2, this.y2);<NEW_LINE>Line2D line2 = new Line2D(this.x1, this.y1, this.x2, this.y2);<NEW_LINE>double d3 = line2.pt...
this.x1, this.y1);
1,630,972
Span createAndStartProducerSpan(R request) {<NEW_LINE>TraceContext maybeParent = current.get();<NEW_LINE>// Unlike message consumers, we try current span before trying extraction. This is the proper<NEW_LINE>// order because the span in scope should take precedence over a potentially stale header entry.<NEW_LINE>//<NEW...
nextMessagingSpan(sampler, request, extracted);
1,667,079
private void acceptCommand(final TypedRecord<JobRecord> command, final CommandControl<JobRecord> commandControl, final Consumer<SideEffectProducer> sideEffect) {<NEW_LINE>final long key = command.getKey();<NEW_LINE>final JobRecord failedJob = jobState.getJob(key);<NEW_LINE>final var retries = command.getValue().getRetr...
jobFailed(failedJob.getType());
800,373
public void readNext() throws NoSuchElementException {<NEW_LINE>if (paragraphIterator != null && paragraphIterator.hasNext()) {<NEW_LINE>// if the record contains more paragraphs, we parse them<NEW_LINE>String paragraph = paragraphIterator.next().get("text").asText();<NEW_LINE>paragraphNumber += 1;<NEW_LINE>bufferedRec...
.split(";")[0];
1,236,155
private boolean matches(Document document, String where) {<NEW_LINE>final String lastWhere;<NEW_LINE>if (StringUtils.isBlank(where)) {<NEW_LINE>return true;<NEW_LINE>} else if (where.contains(PATH_SEPARATOR)) {<NEW_LINE>final int index = where.lastIndexOf(PATH_SEPARATOR);<NEW_LINE>final String parentIds = where.substri...
0, index).trim();
233,858
private boolean loadCertKeyPair() {<NEW_LINE>byte[] certBytes = loadFileToBytes(certFile);<NEW_LINE>byte[] keyBytes = loadFileToBytes(keyFile);<NEW_LINE>// If either file was missing, we definitely can't succeed<NEW_LINE>if (certBytes == null || keyBytes == null) {<NEW_LINE>LimeLog.info("Missing cert or key; need to ge...
KeyFactory.getInstance("RSA", bcProvider);
71,521
private int run(PrioritySearcher<O> priQuery, Duration dur, MeanVariance mv, MeanVariance mvdist) {<NEW_LINE>int hash = 0;<NEW_LINE><MASK><NEW_LINE>MultipleObjectsBundle bundle = queries.loadData();<NEW_LINE>int col = -1;<NEW_LINE>for (int i = 0; i < bundle.metaLength(); i++) {<NEW_LINE>if (res.isAssignableFromType(bun...
TypeInformation res = distance.getInputTypeRestriction();
211,739
private void loadNode37() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_XmlSchema_BuildInfo, new QualifiedName(0, "BuildInfo"), new LocalizedText("en", "BuildInfo"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.v...
(1), 0.0, false);
552,546
private Tuple<T> giveArrayInstances(TypeTag tag, PrefabValues prefabValues, LinkedHashSet<TypeTag> typeStack) {<NEW_LINE>Class<T> type = tag.getType();<NEW_LINE>Class<?> componentType = type.getComponentType();<NEW_LINE>TypeTag componentTag = new TypeTag(componentType);<NEW_LINE>prefabValues.realizeCacheFor(componentTa...
, prefabValues.giveRed(componentTag));
1,380,191
public static void main(String[] args) {<NEW_LINE>Exercise37_ArithmeticExpressions arithmeticExpressions = new Exercise37_ArithmeticExpressions();<NEW_LINE>// Right children should be added before the left children to maintain the expression order<NEW_LINE>Digraph digraph1 = new Digraph(8);<NEW_LINE>digraph1.addEdge(0,...
digraph2.addEdge(1, 3);
1,198,735
protected void addCompletions(@NotNull final CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) {<NEW_LINE>final PsiElement completionElement = parameters.getPosition();<NEW_LINE>final GraphQLOperationTypeDefinition operationTypeDefinition = PsiTreeUtil.getParentOf...
getParent(), GraphQLOperationTypeDefinition.class);
1,731,865
protected void initLegacyPickerField(PickerField.LookupAction lookupAction, @Nullable String screen, MetaClass metaClass, Class javaClass) {<NEW_LINE>if (StringUtils.isNotBlank(screen)) {<NEW_LINE>lookupAction.setLookupScreen(screen);<NEW_LINE>} else {<NEW_LINE>screen = windowConfig.getBrowseScreenId(metaClass);<NEW_LI...
lookupAction.setLookupScreenOpenType(OpenType.DIALOG);
1,311,774
public void run() {<NEW_LINE>Service service = this.service;<NEW_LINE>if (Loggers.EVT_LOG.isDebugEnabled()) {<NEW_LINE>Loggers.EVT_LOG.debug("[CLIENT-BEAT] processing beat: {}", rsInfo.toString());<NEW_LINE>}<NEW_LINE>String ip = rsInfo.getIp();<NEW_LINE>String clusterName = rsInfo.getCluster();<NEW_LINE>int port = rsI...
getClusterMap().get(clusterName);
1,123,661
public Response<V> build() {<NEW_LINE>Map<String, String> headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>if (_headers != null) {<NEW_LINE>headers.putAll(_headers);<NEW_LINE>}<NEW_LINE>ProtocolVersion protocolVersion = (_protocolVersion == null) ? AllProtocolVersions.BASELINE_PROTOCOL_VERSION : _protoc...
HEADER_RESTLI_PROTOCOL_VERSION, protocolVersion.toString());
1,243,464
public void drop(final DropTargetEvent event) {<NEW_LINE>try {<NEW_LINE>if (droppingOnHeader == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TableColumn tcOrig = draggingHeader == null ? tv.getTableColumn((String) DragDropUtils.getLastDraggedObject()) : draggingHeader;<NEW_LINE>if (tcOrig == null) {<NEW_LINE>return;<NE...
columnAdded, tv.getDataSourceType());
421,862
private void initialGroupAssignment(int t, double[][] scratch, int[] gweight) {<NEW_LINE>// Initial means<NEW_LINE>for (int i = 0; i < t; i++) {<NEW_LINE>scratch[i] = means[i].clone();<NEW_LINE>glabel[i] = i;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>// remaining points<NEW_LINE>for (int i = t; i < k; i++) {<NEW_LINE>final d...
Arrays.fill(gweight, 1);
1,341,288
public Result updateScheduledScript(UUID customerUUID, UUID universeUUID) throws IOException {<NEW_LINE>// Extract script file, parameters and cronExpression.<NEW_LINE>MultipartFormData<File> body = request().body().asMultipartFormData();<NEW_LINE>String scriptContent = extractScriptString(body);<NEW_LINE>String script...
schedule.setCronExperssionandTaskParams(cronExpression, taskParams);
1,129,610
public Slices combine(Slices other) {<NEW_LINE>for (int i = 0; i < other.count; i++) {<NEW_LINE>if (!this.sliceKeys.contains(other.ids.get(i))) {<NEW_LINE>this.count++;<NEW_LINE>this.ids.add(other.ids.get(i));<NEW_LINE>this.times.add(other.times.get(i));<NEW_LINE>this.durs.add(other.durs.get(i));<NEW_LINE>this.cpus.add...
.priorities.get(i));
134,722
protected <R> R readValue(@Nullable Object value, ElasticsearchPersistentProperty property, TypeInformation<?> type) {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Class<?> rawType = type.getType();<NEW_LINE>if (property.hasPropertyValueConverter()) {<NEW_LINE>// noinspection unchecked<NEW_LI...
+ '.' + property.getName();
932,652
public void run() {<NEW_LINE>if (null == socket)<NEW_LINE>return;<NEW_LINE>DataInputStream input = null;<NEW_LINE>DataOutputStream output = null;<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.println("Client connected from " + socket.getRemoteSocketAddress());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>input = new DataInputStream(...
println(text + "\n\t" + result);
522,528
public Request<DeleteStreamRequest> marshall(DeleteStreamRequest deleteStreamRequest) {<NEW_LINE>if (deleteStreamRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteStreamRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteStreamRequest> request = new DefaultRequest<DeleteSt...
String snippet = stringWriter.toString();
1,351,376
private void recordResumeOnExceptionHandler(TypeMirror thrown) {<NEW_LINE>if (thrown == null || thrown.getKind() != TypeKind.DECLARED)<NEW_LINE>return;<NEW_LINE>DeclaredType dtt = (DeclaredType) thrown;<NEW_LINE>do {<NEW_LINE>// hack; getSuperclass may provide different type instance for the same element.<NEW_LINE>thro...
r = resumeOnExceptionHandler.get(thrown);
550,024
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static java.util.List<java.lang.String> argumentTypeNames0(com.sun.jdi.Method a) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart("com.s...
.util.Collections.emptyList();
772,612
public void pullTimeSeriesSchema(PullSchemaRequest request, AsyncMethodCallback<PullSchemaResp> resultHandler) {<NEW_LINE>if (dataGroupMember.getCharacter() == NodeCharacter.LEADER) {<NEW_LINE>try {<NEW_LINE>resultHandler.onComplete(dataGroupMember.getLocalQueryExecutor<MASK><NEW_LINE>return;<NEW_LINE>} catch (CheckCon...
().queryTimeSeriesSchema(request));
1,608,679
public UpdateEventDestinationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateEventDestinationResult updateEventDestinationResult = new UpdateEventDestinationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
class).unmarshall(context));
1,408,240
public void run(RegressionEnvironment env) {<NEW_LINE>String text = "@name('s0') select * from SupportBean " + "match_recognize (" + " measures A as a" + " pattern (A{3}) " + " define " + " A as A.intPrimitive > prev(A.intPrimitive)" + ")";<NEW_LINE>env.compileDeploy(text).addListener("s0");<NEW_LINE>sendEvent("A...
sendEvent("A2", 4, env);
95,716
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Setting IpAddress To Log and taking header for original IP if forwarded from proxy<NEW_LINE>ShepherdLogManager.setRequestIp(request.getRemoteAddr(), request.getHeader("X-Forwarded-For"));<NEW_...
.getParameter("enableForAll"), 16);
873,688
private boolean updateDebugOptions(final int debugPort) {<NEW_LINE>boolean updateResult = false;<NEW_LINE>try {<NEW_LINE>ResultMap<String, String> result = CommandGetProperty.getProperties(instance, "configs.config.server-config.java-config.debug-options");<NEW_LINE>if (result.getState() == TaskState.COMPLETED) {<NEW_L...
> values = result.getValue();
204,786
/* Build call for throttlingPoliciesAdvancedPolicyIdPut */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesAdvancedPolicyIdPutCall(String policyId, AdvancedThrottlePolicy body, String contentType, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final P...
proceed(chain.request());
311,739
public Expression implement(RexToLixTranslator translator, RexCall call, List<Expression> expressions) {<NEW_LINE>// neither nullable:<NEW_LINE>// return x OP y<NEW_LINE>// x nullable<NEW_LINE>// null_returns_null<NEW_LINE>// return x == null ? null : x OP y<NEW_LINE>// ignore_null<NEW_LINE>// return x == null ? null :...
(SqlBinaryOperator) call.getOperator();
1,206,427
private static ProspectiveOperation handlePreOrPostFixReducer(ExpressionTree expr, WorkingCopy workingCopy, TreeMaker tm, OperationType operationType, PreconditionsChecker precond, List<ProspectiveOperation> ls, ProspectiveOperation redOp) {<NEW_LINE>ExpressionTree reducing = ((UnaryTree) expr).getExpression();<NEW_LIN...
workingCopy, precond.getVarToName());
489,788
// @see SWTSkinObjectAdapter#skinObjectCreated(SWTSkinObject, java.lang.Object)<NEW_LINE>@Override<NEW_LINE>public Object skinObjectCreated(SWTSkinObject skinObject, Object params) {<NEW_LINE>super.skinObjectCreated(skinObject, params);<NEW_LINE>skin = skinObject.getSkin();<NEW_LINE>soSideBarContents = (SWTSkinObjectCo...
soSideBarPopout = skin.getSkinObject("sidebar-pop");
378,614
public static void main(String[] args) {<NEW_LINE>final MetricsAdvisorAdministrationClient advisorAdministrationClient = new MetricsAdvisorAdministrationClientBuilder().endpoint("https://{endpoint}.cognitiveservices.azure.com/").credential(new MetricsAdvisorKeyCredential("subscription_key"<MASK><NEW_LINE>final String m...
, "api_key")).buildClient();
687,523
private boolean internalRemoveBond() {<NEW_LINE>final BluetoothDevice device = bluetoothDevice;<NEW_LINE>if (device == null)<NEW_LINE>return false;<NEW_LINE>log(Log.VERBOSE, () -> "Removing bond information...");<NEW_LINE>if (device.getBondState() == BluetoothDevice.BOND_NONE) {<NEW_LINE>log(Log.WARN, () -> "Device is ...
w(TAG, "An exception occurred while removing bond", e);
490,564
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>if (maxSize != null) {<NEW_LINE>builder.field(MAX_SIZE_FIELD.getPreferredName(), maxSize.getStringRep());<NEW_LINE>}<NEW_LINE>if (maxPrimaryShardSize != null) {<NEW_LINE>builder.field(...
), maxPrimaryShardSize.getStringRep());
630,186
private GtasksTaskContainer parseRemoteTask(com.google.api.services.tasks.model.Task remoteTask, String listId) {<NEW_LINE>Task task = new Task();<NEW_LINE>ArrayList<Metadata> metadata = new ArrayList<Metadata>();<NEW_LINE>task.setValue(Task.TITLE, remoteTask.getTitle());<NEW_LINE>task.setValue(Task.CREATION_DATE, Date...
setValue(Task.DELETION_DATE, 0L);
687,226
private BaseExpireSnapshotsActionResult deleteFiles(Iterator<Row> expired) {<NEW_LINE>AtomicLong dataFileCount = new AtomicLong(0L);<NEW_LINE>AtomicLong manifestCount = new AtomicLong(0L);<NEW_LINE>AtomicLong manifestListCount = new AtomicLong(0L);<NEW_LINE>Tasks.foreach(expired).retry(3).stopRetryOn(NotFoundException....
LOG.debug("Deleted Manifest: {}", file);
957,956
private void loadCreditMemoPanel() {<NEW_LINE>v_CreditMemoPanel = GridFactory.newGridLayout();<NEW_LINE>v_CreditMemoPanel.setWidth("100%");<NEW_LINE>v_CreditMemoPanel.setHeight("95px");<NEW_LINE>Rows rows = v_CreditMemoPanel.newRows();<NEW_LINE>Row row = rows.newRow();<NEW_LINE>row.setSpans("1,2");<NEW_LINE>// Add labe...
), key.getID());
108,827
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {<NEW_LINE>IResource resource = getResource(receiver);<NEW_LINE>if (resource != null) {<NEW_LINE>IContainer container;<NEW_LINE>if (receiver instanceof IContainer) {<NEW_LINE>container = (IContainer) resource;<NEW_LINE>} else {<N...
get(location.toOSString());
524,850
public Uri toUri() {<NEW_LINE>Uri.Builder uriBuilder = configuration.authorizationEndpoint.buildUpon().appendQueryParameter(PARAM_REDIRECT_URI, redirectUri.toString()).appendQueryParameter(PARAM_CLIENT_ID, clientId).appendQueryParameter(PARAM_RESPONSE_TYPE, responseType);<NEW_LINE>UriUtil.appendQueryParameterIfNotNull(...
appendQueryParameterIfNotNull(uriBuilder, PARAM_LOGIN_HINT, loginHint);
835,923
public boolean broadcastNewStateBundleIfRequired(DatabaseHandler.DatabaseContext dbContext, Communicator communicator, int lastClusterStateVersionWrittenToZooKeeper) {<NEW_LINE>if (clusterStateBundle == null || clusterStateBundle.getVersion() == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (clusterStateBundle.get...
-> buildModifiedClusterState(state, dbContext));
527,281
public TResult applyPathArgument(Expression argument, CheckTypeVisitor visitor, Concrete.SourceNode sourceNode) {<NEW_LINE>assert myDefinition == Prelude.PATH_CON && !myArguments.isEmpty();<NEW_LINE>Expression leftExpr = AppExpression.make(argument, ExpressionFactory.Left(), true);<NEW_LINE>Expression rightExpr = AppEx...
ExpressionFactory.Right(), true);
606,541
public void update(BlazeNewProjectBuilder builder) {<NEW_LINE>this<MASK><NEW_LINE>this.projectViewOption = builder.getProjectViewOption();<NEW_LINE>WorkspaceRoot workspaceRoot = workspaceData.workspaceRoot();<NEW_LINE>WorkspacePath workspacePath = projectViewOption.getSharedProjectView();<NEW_LINE>String initialProject...
.workspaceData = builder.getWorkspaceData();
290,437
public IInfoflowCFG buildBiDirICFG(CallgraphAlgorithm callgraphAlgorithm, boolean enableExceptions) {<NEW_LINE>if (callgraphAlgorithm == CallgraphAlgorithm.OnDemand) {<NEW_LINE>// Load all classes on the classpath to signatures<NEW_LINE>long beforeClassLoading = System.nanoTime();<NEW_LINE>OnTheFlyJimpleBasedICFG.loadA...
.v().hasFastHierarchy();
383,252
public void marshall(DefaultWorkspaceCreationProperties defaultWorkspaceCreationProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (defaultWorkspaceCreationProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMa...
defaultWorkspaceCreationProperties.getUserEnabledAsLocalAdministrator(), USERENABLEDASLOCALADMINISTRATOR_BINDING);
15,475
private static <K, V> CaffeineConfiguration<K, V> resolveConfigurationFor(Configuration<K, V> configuration) {<NEW_LINE>if (configuration instanceof CaffeineConfiguration<?, ?>) {<NEW_LINE>return new CaffeineConfiguration<>((CaffeineConfiguration<K, V>) configuration);<NEW_LINE>}<NEW_LINE>CaffeineConfiguration<K, V> te...
setStoreByValue(configuration.isStoreByValue());
863,871
private void precheckPublicHealthAndStats(final PwmRequest pwmRequest) throws PwmUnrecoverableException {<NEW_LINE>if (pwmRequest.getPwmDomain().getApplicationMode() == PwmApplicationMode.CONFIGURATION) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (pwmRequest.getPwmDomain().getApplicationMode() != PwmApplicationMode.RUNNI...
= new ErrorInformation(PwmError.ERROR_SERVICE_NOT_AVAILABLE);
424,227
private List<String> list(Business business, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Portal.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LINE>Root<Portal>...
), effectivePerson.getDistinguishedName());
921,308
public Void visitIdentifier(IdentifierTree identifier, Void unused) {<NEW_LINE>Tree parent = getCurrentPath().getParentPath().getLeaf();<NEW_LINE>if (!getSymbol(identifier).equals(symbol)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (parent instanceof VariableTree) {<NEW_LINE>VariableTree variable = (VariableTree) p...
fix.postfixWith(identifier, ".build()");
127,174
public static JavaTypeDefinition lub(List<JavaTypeDefinition> types) {<NEW_LINE>for (JavaTypeDefinition type : types) {<NEW_LINE>if (type.isArrayType()) {<NEW_LINE>// TODO: add support for array types<NEW_LINE>return JavaTypeDefinition.forClass(Object.class);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// step 1 - EC<NEW_LINE>Set<C...
>> erasedCandidateSet = getErasedCandidateSet(types);
1,402,195
ExecutableElement methodFromSuperinterfaces(TypeElement in, ExecutableElement method) {<NEW_LINE>TypeElement methodContainer = MoreElements.asType(method.getEnclosingElement());<NEW_LINE>Preconditions.checkArgument(methodContainer.getKind().isInterface());<NEW_LINE>TypeMirror methodContainerType = typeUtils.erasure(met...
erasure(t.asType());
112,180
private final void processCluster(final int clusterIndex) {<NEW_LINE>final Cluster cluster = getCluster(clusterIndex);<NEW_LINE>idToClusterMap.remove(clusterIndex);<NEW_LINE>final List<Integer<MASK><NEW_LINE>outputBuffer.add(collapser.collapse(clusterItemIds.stream().map(idToItemMap::get).collect(Collectors.toList())))...
> clusterItemIds = cluster.getItemIds();
480,916
public void putRouteUnit(final RouteMapper dataSourceMapper, final Collection<RouteMapper> tableMappers) {<NEW_LINE>Collection<RouteUnit> targets = getTargetRouteUnits(dataSourceMapper);<NEW_LINE>if (targets.isEmpty()) {<NEW_LINE>RouteUnit unit = new RouteUnit(dataSourceMapper, new LinkedHashSet<>());<NEW_LINE>unit.get...
toBeAdded = new LinkedList<>();
639,049
protected final void checkForObserveOption(final Exchange exchange, final Resource resource) {<NEW_LINE><MASK><NEW_LINE>if (CoAP.isObservable(request.getCode()) && request.getOptions().hasObserve() && resource.isObservable()) {<NEW_LINE>InetSocketAddress source = request.getSourceContext().getPeerAddress();<NEW_LINE>if...
Request request = exchange.getRequest();
90,956
final CreateKeySigningKeyResult executeCreateKeySigningKey(CreateKeySigningKeyRequest createKeySigningKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createKeySigningKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,236,780
private void initNotificationChannels() {<NEW_LINE>// Keep the importance below DEFAULT to avoid making noise on every notification update for<NEW_LINE>// the main and update channels<NEW_LINE>final List<NotificationChannelCompat> notificationChannelCompats = new ArrayList<>();<NEW_LINE>notificationChannelCompats.add(n...
notification_channel_description)).build());
875,408
private void updateInProjectCombo(boolean show) {<NEW_LINE>if (show) {<NEW_LINE>// NOI18N<NEW_LINE>remoteCheckBox.setText(org.openide.util.NbBundle.getMessage(EjbFacadeVisualPanel2.class, "LBL_Remote_In_Project"));<NEW_LINE>} else {<NEW_LINE>// NOI18N<NEW_LINE>remoteCheckBox.setText(org.openide.util.NbBundle.getMessage...
projects = SessionEJBWizardPanel.getProjectsList(project);
1,074,243
// End of variables declaration//GEN-END:variables<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>String text;<NEW_LINE>final Object source = e.getSource();<NEW_LINE>// someone clicked a button, hide popup and add text<NEW_LINE>if ((source instanceof JButton) && parent != null) {<NEW_LINE>parent.hidePop...
).replace(" ", "_");
677,205
public Void visitIdentifier(IdentifierTree node, ExecutableElement p) {<NEW_LINE>TreePath currentPath = getCurrentPath();<NEW_LINE>if (currentPath.getParentPath().getLeaf().getKind() == Tree.Kind.MEMBER_SELECT) {<NEW_LINE>// Already checked by visitMemberSelect<NEW_LINE>return super.visitIdentifier(node, p);<NEW_LINE>}...
orig2trans.put(node, newTree);
1,711,436
private void acceptBinaryMethod(IType type, IMethod method, char[] uniqueKey, boolean isConstructor) {<NEW_LINE>try {<NEW_LINE>if (!isConstructor || ((JavaElement) method).getClassFile().getBuffer() == null) {<NEW_LINE>if (uniqueKey != null) {<NEW_LINE>ResolvedBinaryMethod resolvedMethod = new ResolvedBinaryMethod((Jav...
print(method.toString());
720,545
private boolean safeCallToPrimateParseMethod(XMethod calledMethod, Location location) {<NEW_LINE>int position = location.getHandle().getPosition();<NEW_LINE>if (Values.DOTTED_JAVA_LANG_INTEGER.equals(calledMethod.getClassName())) {<NEW_LINE>ConstantPool constantPool = classContext.getJavaClass().getConstantPool();<NEW_...
constantPool, code, "java/lang/IllegalArgumentException", position);
700,160
public static void printResponse(CoapResponse response) {<NEW_LINE>if (response != null) {<NEW_LINE>List<byte[]> etags = response.getOptions().getETags();<NEW_LINE>for (byte[] etag : etags) {<NEW_LINE>try {<NEW_LINE>for (byte e : etag) {<NEW_LINE>if (' ' > e) {<NEW_LINE>throw new Error("no ascii!");<NEW_LINE>}<NEW_LINE...
+ StringUtil.byteArray2Hex(etag));
438,863
public static List<MergeWordFragment> compare(@Nonnull CharSequence text1, @Nonnull CharSequence text2, @Nonnull CharSequence text3, @Nonnull ComparisonPolicy policy, @Nonnull ProgressIndicator indicator) {<NEW_LINE>indicator.checkCanceled();<NEW_LINE>List<InlineChunk> words1 = getInlineChunks(text1);<NEW_LINE>List<Inl...
words2, words3, wordChanges2, indicator);
1,612,822
private void logTooManyModifications(Map<String, Integer> modifiedFolders, int modifiedFiles) {<NEW_LINE>Map<Integer, List<String>> sortedFolders = sortFolders(modifiedFolders);<NEW_LINE>List<String> biggestFolders = <MASK><NEW_LINE>outer: for (Map.Entry<Integer, List<String>> e : sortedFolders.entrySet()) {<NEW_LINE>f...
new ArrayList<String>(3);
23,664
final DescribeDomainResult executeDescribeDomain(DescribeDomainRequest describeDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
(super.beforeMarshalling(describeDomainRequest));
700,300
public void createControl(Composite composite) {<NEW_LINE>controlModifyListener = new ControlsListener();<NEW_LINE>Composite addrGroup = new Composite(composite, SWT.NONE);<NEW_LINE>addrGroup.setLayout(new GridLayout(1, false));<NEW_LINE>addrGroup.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>UIUtils.create...
SWT.TOP | SWT.MULTI);
1,162,788
private void notStrictRule(GrayF32 intensityImage, QueueCorner corners) {<NEW_LINE>final int imgWidth = intensityImage.getWidth();<NEW_LINE>final int imgHeight = intensityImage.getHeight();<NEW_LINE>final float[] inten = intensityImage.data;<NEW_LINE>for (int y = border; y < imgHeight - border; y++) {<NEW_LINE>int cent...
corners.append(x, y);
565,842
public void fill() throws JRException {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>// data source filling<NEW_LINE>{<NEW_LINE>Map<String, Object> parameters = new HashMap<String, Object>();<NEW_LINE>parameters.put("ReportTitle", "Address Report");<NEW_LINE>parameters.put("DataFile", "CsvDataSource.txt -...
HashMap<String, Object>();
1,305,217
public void filter(Set<String> brokers, BundleData bundleToAssign, LoadData loadData, ServiceConfiguration conf) throws BrokerFilterBadVersionException {<NEW_LINE>if (!conf.isPreferLaterVersions()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>com.github.zafarkhaja.semver.Version latestVersion = null;<NEW_LINE>try {<NEW_LINE>...
"Broker [{}] is running an older version ([{}]); latest version is [{}]", broker, brokerVersion, latestVersion);
299,658
private PropertyEditor createPropertyEditor(Class editorClass, Class propertyType, FormProperty property) throws InstantiationException, IllegalAccessException {<NEW_LINE>PropertyEditor ed = null;<NEW_LINE>if (editorClass.equals(RADConnectionPropertyEditor.class)) {<NEW_LINE>ed = new RADConnectionPropertyEditor(propert...
createEnumEditor(prop.getPropertyDescriptor());
378,232
private CompletableFuture<Pair<List<String>, String>> readAll(int limit, String continuationToken, String tableName, OperationContext context) {<NEW_LINE>List<String> <MASK><NEW_LINE>AtomicReference<String> token = new AtomicReference<>(continuationToken);<NEW_LINE>AtomicBoolean canContinue = new AtomicBoolean(true);<N...
taken = new ArrayList<>();
1,604,275
public void initializeLog10Priors(final byte[] haplotypeBases, final byte[] readBases, final byte[] readQuals, final int startIndex) {<NEW_LINE>// initialize the log prior matrix for all combinations of read x haplotype bases<NEW_LINE>// Java initializes arrays with 0.0, so no need to fill in rows and columns below 2.<...
doNotUseTristateCorrection ? 0.0 : log10_3)));
691,326
protected void paintHighlight(RenderContext<V, E> rc, V vertex, GraphicsDecorator g, Rectangle bounds) {<NEW_LINE>if (!vertex.isSelected()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>int halfishTransparency = 150;<NEW_LINE>Color yellowWithTransparency = new Color(255, 255, 0, halfishTransparency);<NEW_LINE>...
Paint oldPaint = g.getPaint();
1,010,388
public static boolean processDeclarations(@NotNull GoCompositeElement o, @NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) {<NEW_LINE>boolean isAncestor = PsiTreeUtil.isAncestor(o, place, false);<NEW_LINE>if (o instanceof GoVarSpec) {<NEW_LINE>return is...
processor, state, lastParent, place);
1,327,190
final UpdateUserPoolResult executeUpdateUserPool(UpdateUserPoolRequest updateUserPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,852,432
private void deleteSpecificServerRegistration(RESTRequest request, RESTResponse response) {<NEW_LINE>String source_objName = RESTHelper.getRequiredParam(request, APIConstants.PARAM_SOURCE_OBJNAME);<NEW_LINE>String listener_objName = RESTHelper.getRequiredParam(request, APIConstants.PARAM_LISTENER_OBJNAME);<NEW_LINE>Str...
clientID = Integer.parseInt(clientIDString);
1,380,126
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>mRecyclerView = getView().findViewById(R.id.recycler_view);<NEW_LINE>mLayoutManager = new LinearLayoutManager(requireContext()...
= new DraggableExampleItemAdapter(getDataProvider());
507,934
private void publishGroupAvailabilityEvents(MemberImpl removedMember) {<NEW_LINE>ClusterService clusterService = nodeEngine.getClusterService();<NEW_LINE>if (clusterService.getClusterVersion().isUnknownOrLessThan(Versions.V4_1)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// since only the Metadata CP group members keep the...
group.members(), missing);
1,782,664
protected Map<String, Object> deserializeEmbeddedMapAsMapOfBytes(final BytesContainer bytes, OImmutableSchema schema) {<NEW_LINE>Map<String, Object> retVal = new TreeMap<>();<NEW_LINE>List<MapRecordInfo> <MASK><NEW_LINE>for (MapRecordInfo recordInfo : positionsWithLengths) {<NEW_LINE>String key = recordInfo.key;<NEW_LI...
positionsWithLengths = getPositionsFromEmbeddedMap(bytes, schema);
948,398
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW...
Wi.copier.copy(wi);
1,682,272
private void fillUp() {<NEW_LINE>int lackSize = config.maxActivePeers() - channelManager.getActivePeers().size();<NEW_LINE>if (lackSize <= 0)<NEW_LINE>return;<NEW_LINE>final Set<String> nodesInUse = nodesInUse();<NEW_LINE>// exclude home node<NEW_LINE>nodesInUse.add(Hex.toHexString(config.nodeId()));<NEW_LINE>List<Node...
connect(n.getNode());
1,539,105
public static void scaleFrequencies(int[] freq, int total) {<NEW_LINE>int len <MASK><NEW_LINE>for (int x : freq) {<NEW_LINE>sum += x;<NEW_LINE>}<NEW_LINE>// the list of: (error << 8) + index<NEW_LINE>int[] errors = new int[len];<NEW_LINE>int totalError = -total;<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>int old...
= freq.length, sum = 0;
1,631,891
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String accountName, String backupPolicyName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
258,348
public static String resetPassword(Main main, String token, String password) throws ResetPasswordInvalidTokenException, NoSuchAlgorithmException, StorageQueryException, StorageTransactionLogicException {<NEW_LINE>String hashedToken = Utils.hashSHA256(token);<NEW_LINE>String hashedPassword = PasswordHashing.getInstance(...
new StorageTransactionLogicException(new ResetPasswordInvalidTokenException());
1,777,163
protected void addPackageList(Content contentTree) throws IOException {<NEW_LINE>Content table = HtmlTree.TABLE(HtmlStyle.useSummary, 0, 3, 0, useTableSummary, getTableCaption(configuration.getResource("doclet.ClassUse_Packages.that.use.0", getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.CLASS_USE_HEADER, cla...
(getSummaryTableHeader(packageTableHeader, "col"));
51,920
public void sendNotification(final String participantPrivateId, final String method, final Object params) {<NEW_LINE>RpcConnection rpcSession = rpcConnections.get(participantPrivateId);<NEW_LINE>if (rpcSession == null || rpcSession.getSession() == null) {<NEW_LINE>if (!isIpcamParticipant(participantPrivateId)) {<NEW_LI...
getCause().getMessage());
1,151,703
public String buildReport(ModelRequest request, ModelPeriod period, String domain, ApiPayload payload) throws Exception {<NEW_LINE>List<BusinessReport> reports = super.getReport(period, domain);<NEW_LINE>BusinessReport report = null;<NEW_LINE>if (reports != null) {<NEW_LINE>report = new BusinessReport(domain);<NEW_LINE...
long startTime = request.getStartTime();
804,072
final CreateDhcpOptionsResult executeCreateDhcpOptions(CreateDhcpOptionsRequest createDhcpOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDhcpOptionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
invoke(request, responseHandler, executionContext);
1,696,124
private Geometry fixMultiLineString(MultiLineString geom) {<NEW_LINE>List<Geometry> fixed = new ArrayList<Geometry>();<NEW_LINE>boolean isMixed = false;<NEW_LINE>for (int i = 0; i < geom.getNumGeometries(); i++) {<NEW_LINE>LineString line = (LineString) geom.getGeometryN(i);<NEW_LINE>if (line.isEmpty())<NEW_LINE>contin...
(GeometryFactory.toGeometryArray(fixed));
1,585,831
public static void test() throws Exception {<NEW_LINE>TransactionTopologyBuilder builder = new TransactionTopologyBuilder();<NEW_LINE>if (isLocal) {<NEW_LINE>conf.put("tuple.num.per.batch", 5);<NEW_LINE>conf.put("transaction.scheduler.spout", false);<NEW_LINE>conf.put("transaction.exactly.cache.type", "default");<NEW_L...
.get("transaction.scheduler.spout"), true);
1,842,276
public void initialize(ConfigurableListableBeanFactory beanFactory) throws BeansException {<NEW_LINE>BeanDefinitionRegistry registry = (BeanDefinitionRegistry) beanFactory;<NEW_LINE>List<Map<String, String>> idempotentEndpointsMapping = new ManagedList<>();<NEW_LINE>for (String beanName : registry.getBeanDefinitionName...
(endpoint) + IntegrationConfigUtils.HANDLER_ALIAS_SUFFIX);