idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
699,014
public Integer verifyConstraint(String person, long usedSize) throws Exception {<NEW_LINE>Cache.CacheCategory cacheCategory = new Cache.CacheCategory(FileConfig.class);<NEW_LINE>Cache.CacheKey cacheKey = new Cache.CacheKey(FileConfig.class, Business.SYSTEM_CONFIG);<NEW_LINE>Optional<?> optional = CacheManager.get(cache...
= usedSize / (1024 * 1024);
191,265
public <T> FieldReader createFieldReaderParam(Class<T> objectClass, Type objectType, String fieldName, int ordinal, long features, String format, Type fieldType, Class fieldClass, String paramName, Parameter parameter, JSONSchema schema) {<NEW_LINE>if (fieldType == byte.class || fieldType == Byte.class) {<NEW_LINE>retu...
ordinal, features, format, schema);
1,096,502
private void incrementalUpdate() throws KeeperException {<NEW_LINE>final MapDifference<String, byte[]> difference = Maps.difference(entries.get(), remote, BYTE_ARRAY_EQUIVALENCE);<NEW_LINE>if (difference.areEqual()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Map<String, byte[]> newRemote = Maps.newHashMap(remote);<NE...
), entry.getValue());
1,558,589
private void findComponentModules() {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>Collection<UpdateUnit> units = null;<NEW_LINE>Collection<UpdateElement> elementsForInstall = null;<NEW_LINE>buildCodebaseIndex();<NEW_LINE>for (int[] refresh = { 2 }; refresh[0] > 0; ) {<NEW_LINE>if (units != null) {<NEW_LI...
forEnable = getAllForEnable(elementsForEnable, units);
869,064
final UpdateDomainNameResult executeUpdateDomainName(UpdateDomainNameRequest updateDomainNameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainNameRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateDomainNameRequest> ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
24,815
public void transform(Row row, PointCollector collector) throws UDFInputSeriesDataTypeNotValidException, IOException {<NEW_LINE>long time = row.getTime();<NEW_LINE>switch(dataType) {<NEW_LINE>case INT32:<NEW_LINE>collector.putBoolean(time, row.getInt(0) >= lower && upper >= row.getInt(0));<NEW_LINE>break;<NEW_LINE>case...
TSDataType.FLOAT, TSDataType.DOUBLE);
564,436
private static RefactorWorkspaceEdit moveStaticMember(CodeActionParams params, String destinationTypeName, IProgressMonitor monitor) {<NEW_LINE>final ICompilationUnit unit = JDTUtils.resolveCompilationUnit(params.getTextDocument().getUri());<NEW_LINE>if (unit == null) {<NEW_LINE>return new RefactorWorkspaceEdit("Failed...
bodyDeclaration = getSelectedMemberDeclaration(unit, params);
867,329
public final Or_testContext or_test() throws RecognitionException {<NEW_LINE>Or_testContext _localctx = new Or_testContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 110, RULE_or_test);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1065);<NEW_LINE>_localctx.fi...
push(_localctx.first.result);
1,044,329
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean_ST0_Container");<NEW_LINE>builder.expression(fields[0], "contained.arrayOf(x => x.p00)");<NEW_LINE>builder.expression<MASK><NEW_LINE>builder.expression...
(fields[1], "contained.arrayOf((x, i) => x.p00 + i*10)");
975,265
public static ExtProcessOutput execAndGetFirstLine(long timeout, @NotNull String... command) {<NEW_LINE>try {<NEW_LINE>Process cmdRunner = new GeneralCommandLine(command).createProcess();<NEW_LINE>ExecutorService singleTreadExecutor = Executors.newSingleThreadExecutor();<NEW_LINE>try {<NEW_LINE>Future<ExtProcessOutput>...
get(timeout, TimeUnit.MILLISECONDS);
1,145,782
public void validateExclusiveGateway(Process process, ExclusiveGateway exclusiveGateway, List<ValidationError> errors) {<NEW_LINE>if (exclusiveGateway.getOutgoingFlows().isEmpty()) {<NEW_LINE>addError(errors, Problems.EXCLUSIVE_GATEWAY_NO_OUTGOING_SEQ_FLOW, process, exclusiveGateway, "Exclusive gateway has no outgoing ...
EXCLUSIVE_GATEWAY_CONDITION_ON_DEFAULT_SEQ_FLOW, process, exclusiveGateway, "Default sequenceflow has a condition, which is not allowed");
739,628
final ListDomainNamesResult executeListDomainNames(ListDomainNamesRequest listDomainNamesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDomainNamesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,681,304
protected void editRepository(final RepositoryModel repository) {<NEW_LINE>EditRepositoryDialog dialog = new EditRepositoryDialog(gitblit.getProtocolVersion(), repository);<NEW_LINE>dialog.setLocationRelativeTo(RepositoriesPanel.this);<NEW_LINE>List<String> usernames = gitblit.getUsernames();<NEW_LINE>List<RegistrantAc...
setRepositories(gitblit.getRepositories());
509,418
public void run(String localTrxName) {<NEW_LINE>wrapper.setTrxName(localTrxName);<NEW_LINE>int id = wrapper.getId();<NEW_LINE>final boolean isNew = id <= wrapper.idForNewModel();<NEW_LINE>fireModelChanged(model, isNew ? ModelChangeType.BEFORE_NEW : ModelChangeType.BEFORE_CHANGE);<NEW_LINE>final Timestamp now = SystemTi...
::getRepoId).orElse(null);
1,145,132
public static Map<Integer, String> convertToStringMap(Map<Integer, ReadCellData<?>> cellDataMap, AnalysisContext context) {<NEW_LINE>Map<Integer, String> stringMap = MapUtils.newHashMapWithExpectedSize(cellDataMap.size());<NEW_LINE>ReadSheetHolder readSheetHolder = context.readSheetHolder();<NEW_LINE>int index = 0;<NEW...
Integer key = entry.getKey();
871,000
public void onEnable() {<NEW_LINE>// save world so the level.dat is present on new worlds<NEW_LINE>Logger.global.logInfo("Saving all worlds once, to make sure the level.dat is present...");<NEW_LINE>for (World world : getServer().getWorlds()) {<NEW_LINE>world.save();<NEW_LINE>}<NEW_LINE>// register events<NEW_LINE>getS...
).registerEvents(this, this);
1,628,731
void annotate(final List<Location> locations) {<NEW_LINE>doc.render(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>StyledDocument sd = (StyledDocument) doc;<NEW_LINE>elementAnnotations = new HashMap<Integer, Location>();<NEW_LINE>for (Location loc : locations) {<NEW_LINE>int line = ...
elementAnnotations.put(endline, loc);
831,644
public void processNack(ControlNack nm) throws SIResourceException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "processNack", nm);<NEW_LINE>long startstamp = nm.getStartTick();<NEW_LINE>long endstamp = nm.getEndTick();<NEW_LINE>synchronized (this) {<NEW_LINE>// the following steps are performed:<NEW_LI...
SibTr.exit(tc, "processNack");
1,566,611
protected void recover(RecognitionException e) {<NEW_LINE>int i = _input.index();<NEW_LINE>getErrorHandler().recover(this, e);<NEW_LINE>if (_input.index() == i) {<NEW_LINE>// no input consumed, better add an error node<NEW_LINE>if (e instanceof InputMismatchException) {<NEW_LINE>InputMismatchException ime = (InputMisma...
Token tok = e.getOffendingToken();
993,443
final RunTaskResult executeRunTask(RunTaskRequest runTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(runTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
574,487
public void onRestoreRequested(@BookmarkManager.RestoringRequestResult int result, @NonNull String deviceName, long backupTimestampInMs) {<NEW_LINE>LOGGER.d(TAG, "onRestoreRequested, result: " + result + ", deviceName = " + deviceName + ", backupTimestampInMs = " + backupTimestampInMs);<NEW_LINE>Statistics.INSTANCE.tra...
R.string.cancel, mRestoreCancelListener);
688,228
static byte[] readAndPrepend(final InputStream content, final int size, final byte[] prefix) throws IOException {<NEW_LINE>final int prefixLength = prefix.length;<NEW_LINE>final byte[] joined = new byte[prefixLength + size];<NEW_LINE>// using IOUtils guarantees that it will read as many bytes as possible before giving ...
smaller, 0, prefix.length);
532,220
public Map<String, String> toMap() {<NEW_LINE>Map<String, String> <MASK><NEW_LINE>result.put(REALM_ID, realm.getId());<NEW_LINE>if (clientNotificationToken != null) {<NEW_LINE>result.put(CLIENT_NOTIFICATION_TOKEN_NOTE, clientNotificationToken);<NEW_LINE>}<NEW_LINE>if (authReqId != null) {<NEW_LINE>result.put(AUTH_REQ_I...
result = new HashMap<>();
1,244,088
public String[] deserializeFromMemory(final Memory mem, final int numItems) {<NEW_LINE>final String[<MASK><NEW_LINE>long offsetBytes = 0;<NEW_LINE>for (int i = 0; i < numItems; i++) {<NEW_LINE>// Read the length of the ith String<NEW_LINE>Util.checkBounds(offsetBytes, Integer.BYTES, mem.getCapacity());<NEW_LINE>final i...
] array = new String[numItems];
953,661
public ActionResult<Void> resume(@PathKeysParam PathKeys pathKeys, @ActionParam("force") @Optional("false") boolean force) {<NEW_LINE>String datastreamName = pathKeys.getAsString(KEY_NAME);<NEW_LINE>Datastream datastream = _store.getDatastream(datastreamName);<NEW_LINE>LOG.info("Received request to resume datastream {}...
) : Collections.singletonList(datastream);
673,124
public ListRecommenderConfigurationsResponse unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListRecommenderConfigurationsResponse listRecommenderConfigurationsResponse = new ListRecommenderConfigurationsResponse();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
1,075,831
public void preferenceChange(PreferenceChangeEvent event) {<NEW_LINE>final var prefs = event.getNode();<NEW_LINE>final <MASK><NEW_LINE>final var name = getIdentifier();<NEW_LINE>if (prop.equals(name)) {<NEW_LINE>final var oldValue = value;<NEW_LINE>final var newValue = prefs.getBoolean(name, dflt);<NEW_LINE>if (newValu...
var prop = event.getKey();
550,768
void onClusterMembersChange(final long correlationId, final int leaderMemberId, final String activeMembers, final String passiveMembers) {<NEW_LINE>if (State.INIT == state && correlationId == this.correlationId) {<NEW_LINE>final ClusterMember[] passiveFollowers = ClusterMember.parse(passiveMembers);<NEW_LINE>for (final...
ENDPOINT_PARAM_NAME, leaderMember.consensusEndpoint());
1,195,034
private BsonDocument readHAL2SHAL(MongoResponse response, BsonValue content) {<NEW_LINE>var ret = new BsonDocument();<NEW_LINE>if (content != null && content.isDocument()) {<NEW_LINE>content.asDocument().keySet().stream().filter(key -> !"_embedded".equals(key) && !"_links".equals(key)).forEach(key -> ret.append(key, co...
addItems(__embedded, embedded, "rh:result");
35,072
public void deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.<MASK><NEW_LINE>}<NEW_LINE>String accountName = U...
format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
693,099
private static void eagerlyCleanupReadBuffersFromIdleConnection(CassandraClient idleClient, CassandraServer server) {<NEW_LINE>// eagerly cleanup idle-connection read buffer to keep a smaller memory footprint<NEW_LINE>try {<NEW_LINE>TTransport transport = idleClient.getInputProtocol().getTransport();<NEW_LINE>if (trans...
log.debug("Couldn't clean up read buffers on pool check-in.", e);
1,241,183
/* todo: capture phases????<NEW_LINE>[226.179s][info ][gc,phases,start] GC(1198) Phase 1: Mark live objects<NEW_LINE>[226.310s][info ][gc,phases ] GC(1198) Phase 1: Mark live objects 131.379ms<NEW_LINE>[226.310s][info ][gc,phases,start] GC(1198) Phase 2: Compute new object addresses<NEW_LINE>[226.354s][info ][gc...
collection.add(generateReferenceGCSummary());
1,819,855
public void run(RegressionEnvironment env) {<NEW_LINE>env.advanceTime(0);<NEW_LINE>String[] fields = new String[] { "theString", "intPrimitive", "longPrimitive" };<NEW_LINE>String epl = "create context MyContext start @now end after 1 second;\n" + "@name('s0') context MyContext select * from SupportBean#keepall output ...
env, "E2", 2, 10);
897,313
private static List<TaskListItem> createPopupActionGroup(@Nonnull final Project project, final Ref<Boolean> shiftPressed, final Component contextComponent) {<NEW_LINE>List<TaskListItem> group = new ArrayList<TaskListItem>();<NEW_LINE>final AnAction action = ActionManager.getInstance().getAction(GotoTaskAction.ID);<NEW_...
final GotoTaskAction gotoTaskAction = (GotoTaskAction) action;
431,844
public static DescribeDBClusterResourcePoolPerformanceResponse unmarshall(DescribeDBClusterResourcePoolPerformanceResponse describeDBClusterResourcePoolPerformanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBClusterResourcePoolPerformanceResponse.setRequestId(_ctx.stringValue("DescribeDBClusterResourcePoolP...
(_ctx.stringValue("DescribeDBClusterResourcePoolPerformanceResponse.DBClusterId"));
1,650,057
final GetSuiteResult executeGetSuite(GetSuiteRequest getSuiteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSuiteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
612,109
public static void rotateCW(ImageBase image) {<NEW_LINE>if (image instanceof ImageGray) {<NEW_LINE>if (GrayI8.class.isAssignableFrom(image.getClass())) {<NEW_LINE>ImageMiscOps.rotateCW((GrayI8) image);<NEW_LINE>} else if (GrayI16.class.isAssignableFrom(image.getClass())) {<NEW_LINE>ImageMiscOps.rotateCW((GrayI16) image...
.rotateCW((GrayS32) image);
522,876
private boolean applyOperationNameCustomization() {<NEW_LINE>JAXWSBinding jaxwsCustomization = (JAXWSBinding) getExtensionOfType(info.portTypeOperation, JAXWSBinding.class);<NEW_LINE>String operationName = (jaxwsCustomization != null) ? ((jaxwsCustomization.getMethodName() != null) ? jaxwsCustomization.getMethodName()....
.operation.getName()));
865,416
public void visitFunctionDeclaration(FunctionDeclaration functionDeclaration) {<NEW_LINE>this.currentDeclaration = functionDeclaration;<NEW_LINE>expandedDeclarations.clear();<NEW_LINE>new UnionScanner(context, functionDeclaration, Selected.LEFT).scan();<NEW_LINE>if (expandedDeclarations.size() > 40) {<NEW_LINE>// too m...
context, functionDeclaration).scan();
1,313,397
public void loadDefaultValues() {<NEW_LINE>setDefault(CommonClientConfigKey.MaxHttpConnectionsPerHost, getDefaultMaxHttpConnectionsPerHost());<NEW_LINE>setDefault(CommonClientConfigKey.MaxTotalHttpConnections, getDefaultMaxTotalHttpConnections());<NEW_LINE>setDefault(CommonClientConfigKey.EnableConnectionPool, getDefau...
CommonClientConfigKey.MaxConnectionsPerHost, getDefaultMaxConnectionsPerHost());
263,818
public boolean initNewCluster() throws Exception {<NEW_LINE>String zkServers = ZKMetadataDriverBase.resolveZkServers(conf);<NEW_LINE>String instanceIdPath = ledgersRootPath + "/" + INSTANCEID;<NEW_LINE>log.info("Initializing ZooKeeper metadata for new cluster, ZKServers: {} ledger root path: {}", zkServers, ledgersRoot...
, zkAcls, CreateMode.PERSISTENT));
446,827
public void submitClicked(View v) {<NEW_LINE>String apiKey = "thisIsTheAPIKey";<NEW_LINE>ArrayList<NameValuePair> postParameters = new ArrayList<NameValuePair>();<NEW_LINE>postParameters.add(new BasicNameValuePair("mobileKey", apiKey));<NEW_LINE>try {<NEW_LINE>SharedPreferences SP = PreferenceManager.getDefaultSharedPr...
toString(), Toast.LENGTH_LONG);
528,421
private static void extractSubtrees(List<String> codeStrings, String treeFile) {<NEW_LINE>List<Pair<Integer, Integer>> codes = new ArrayList<>();<NEW_LINE>for (String s : codeStrings) {<NEW_LINE>Matcher m = codePattern.matcher(s);<NEW_LINE>if (m.matches())<NEW_LINE>codes.add(new Pair<>(Integer.parseInt(m.group(1)), Int...
loadPath(treeFile, null, true);
423,329
public void paintIcon(Component c, Graphics g, int x, int y) {<NEW_LINE>if (c.isEnabled()) {<NEW_LINE>g.setColor(OWLSystemColors.getForegroundColor());<NEW_LINE>} else {<NEW_LINE>g.setColor(Color.LIGHT_GRAY);<NEW_LINE>}<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_ANTIALIASIN...
drawPolyline(xPoints, yPoints, 3);
1,577,172
public void cleanup(TreeLogger logger) {<NEW_LINE>logger.log(Type.TRACE, "PersistentUnitCache cleanup requested");<NEW_LINE>backgroundService.waitForCacheToLoad();<NEW_LINE>if (backgroundService.isShutdown()) {<NEW_LINE>logger.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!cleanupInProgress.tryAcquire()) {<NEW_LINE>/...
log(TreeLogger.TRACE, "Skipped PersistentUnitCache cleanup because it's shut down");
273,919
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@Name('flow') create dataflow MyGraph Emitter -> outstream<?> {}";<NEW_LINE>EPCompiled compiledGraph = env.compile(epl);<NEW_LINE>try {<NEW_LINE>env.deployment().deploy(compiledGraph, new DeploymentOptions().setDeploymentId("DEP1"));<NEW_LINE>} catch (...
.runtime().getDataFlowService();
1,099,652
public void process(Supplier<Context> context) {<NEW_LINE>Context ctx = context.get();<NEW_LINE>if (ctx.getDirection().getReceptionSide() == LogicalSide.SERVER) {<NEW_LINE>ServerPlayer player = ctx.getSender();<NEW_LINE>assert player != null;<NEW_LINE>UUID playerId = player.getUUID();<NEW_LINE>ctx.enqueueWork(() -> {<N...
receivedShaders.put(name, shader);
89,690
private FileObject resolveFile(String classBinaryName) {<NEW_LINE>assert classBinaryName != null;<NEW_LINE>// NOI18N<NEW_LINE>classBinaryName = classBinaryName.replace('.', '/');<NEW_LINE>// NOI18N<NEW_LINE>int index = classBinaryName.lastIndexOf('/');<NEW_LINE>for (FileObject root : roots) {<NEW_LINE>FileObject folder...
classBinaryName.substring(index + 1);
89,134
public DescribeThingResult describeThing(DescribeThingRequest describeThingRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeThingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NE...
JsonUnmarshallerContext> unmarshaller = new DescribeThingResultJsonUnmarshaller();
1,391,333
public void mouseReleased(final MouseEvent e) {<NEW_LINE>final MainView v = (MainView) e.getSource();<NEW_LINE>if (!v.contains(e.getX(), e.getY())) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (!isDragActive()) {<NEW_LINE>super.mouseReleased(e);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final NodeView nodeV = getNodeView(e);<NE...
v.setMouseArea(MouseArea.OUT);
1,384,380
final CreateConnectionResult executeCreateConnection(CreateConnectionRequest createConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
invoke(request, responseHandler, executionContext);
1,158,171
public static void hl7v2MessageCreate(String hl7v2StoreName, String messageId, String filePath) throws IOException {<NEW_LINE>// String hl7v2StoreName =<NEW_LINE>// String.format(<NEW_LINE>// HL7v2_NAME, "your-project-id", "your-region-id", "your-dataset-id", "your-hl7v2-id");<NEW_LINE>// String messageId = "your-messa...
"HL7v2 message created: " + response.toPrettyString());
1,128,016
public static boolean checkIfServletExist(Document sipXml, String servletName, String servletClassName) {<NEW_LINE>XPathFactory factory = XPathFactory.newInstance();<NEW_LINE>XPath xPath = factory.newXPath();<NEW_LINE>xPath.setNamespaceContext(new SipXmlNameSpace());<NEW_LINE>NodeList nodeList = null;<NEW_LINE>try {<NE...
"']", sipXml, XPathConstants.NODESET);
1,348,659
public UpdateApnsSandboxChannelResult updateApnsSandboxChannel(UpdateApnsSandboxChannelRequest updateApnsSandboxChannelRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApnsSandboxChannelRequest);<NEW_LINE><MASK><NEW_LINE>awsRequest...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,837,586
final DescribeDomainControllersResult executeDescribeDomainControllers(DescribeDomainControllersRequest describeDomainControllersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDomainControllersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDomainControllers");
1,215,415
private void createThemeClass(File dir, String themeName, String baseTheme) throws IOException {<NEW_LINE>// search for "resources" parent directory that has "java" directory at same level<NEW_LINE>File classDir = dir;<NEW_LINE>String subPath = null;<NEW_LINE>String pkg = null;<NEW_LINE>for (File d = dir; d != null; d ...
d.getParentFile(), "java");
1,153,486
public void publish(Object payload, DynamicOptions transportOptions, State state) throws ConnectionUnavailableException {<NEW_LINE>int errorCount = 0;<NEW_LINE>StringBuilder errorMessages = null;<NEW_LINE>List<Integer> destinationsToPublish = strategy.getDestinationsToPublish(payload, transportOptions);<NEW_LINE>int de...
streamDefinition.getId() + "' as no connections are available to publish data.");
358,168
public static void rotateCCW(GrayF32 image) {<NEW_LINE>if (image.width != image.height)<NEW_LINE>throw new IllegalArgumentException("Image must be square");<NEW_LINE>int w = image.height / 2 + image.height % 2;<NEW_LINE>int h = image.height / 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, h, y0->{<NEW_LINE>...
+ x0 * image.stride + y1;
1,597,697
final EnableInsightRulesResult executeEnableInsightRules(EnableInsightRulesRequest enableInsightRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableInsightRulesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
invoke(request, responseHandler, executionContext);
270,502
public String serialize(int numberOfSpacesToIndent, HttpResponseModifier response) {<NEW_LINE>StringBuffer output = new StringBuffer();<NEW_LINE>if (response != null) {<NEW_LINE>appendNewLineAndIndent(numberOfSpacesToIndent * INDENT_SIZE, output);<NEW_LINE>output.append("responseModifier()");<NEW_LINE>if (response.getH...
, output).append(".withCookies(");
1,560,198
private void loadNode86() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.CertificateGroupFolderType_AdditionalGroup_Placeholder_TrustList_OpenWithMasks, new QualifiedName(0, "OpenWithMasks"), new LocalizedText("en", "OpenWithMasks"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.val...
.expanded(), true));
717,333
public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed, int type) {<NEW_LINE>dispatchNestedPreScroll(dx, dy, consumed, null, type);<NEW_LINE>int unconsumed = dy - consumed[1];<NEW_LINE>if (unconsumed > 0) {<NEW_LINE>int topMargin = Math.min(mOffsetRange, getPaddingTop() + (mHeaderVi...
consumed[1] += topMargin - mOffsetCurrent;
1,109,234
public ListOrdersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListOrdersResult listOrdersResult = new ListOrdersResult();<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();
739,495
public final boolean defineInferredProperty(String propertyName, JSType type, Node propertyNode) {<NEW_LINE>if (hasProperty(propertyName)) {<NEW_LINE>if (isPropertyTypeDeclared(propertyName)) {<NEW_LINE>// We never want to hide a declared property with an inferred property.<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>JST...
= checkNotNull(getPropertyType(propertyName));
1,721,746
public BasicResponse updateParam(@Valid @RequestBody NodeParamController.UpdateParamRequest request) {<NEW_LINE>experimentService.secureGetNode(request.experimentId, request.nodeId);<NEW_LINE>List<NodeParam> nodeParamList = nodeParamRepository.findByExperimentIdAndNodeId(request.experimentId, request.nodeId);<NEW_LINE>...
nodeParam.setExperimentId(request.experimentId);
1,231,887
public void execute(ActivityExecution execution) throws Exception {<NEW_LINE>// Join<NEW_LINE>PvmActivity activity = execution.getActivity();<NEW_LINE>List<PvmTransition> outgoingTransitions = execution.getActivity().getOutgoingTransitions();<NEW_LINE>execution.inactivate();<NEW_LINE>lockConcurrentRoot(execution);<NEW_...
getId(), nbrOfExecutionsJoined, nbrOfExecutionsToJoin);
1,145,536
void scoreViewsSelectStereoPairs(SceneStructureMetric scene) {<NEW_LINE>for (int i = 0; i < arrayScores.size; i++) {<NEW_LINE>ViewInfo center = arrayScores.get(i);<NEW_LINE>List<StereoPairGraph.Edge> pairs = center.relations.pairs;<NEW_LINE>BundleAdjustmentCamera candidateCamera = scene.cameras.get(center.metric.camera...
).concat(world_to_view2, view1_to_view2);
574,970
protected JRCompilationSourceCode generateClass() throws JRException {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>generateClassStart(sb);<NEW_LINE>generateDeclarations(sb);<NEW_LINE>generateInitMethod(sb);<NEW_LINE>generateInitParamsMethod(sb);<NEW_LINE>if (fieldsMap != null) {<NEW_LINE>generateInitField...
(JRExpression.EVALUATION_ESTIMATED, empty));
1,337,246
public CompletableFuture<ElasticSearchVersion> connect() {<NEW_LINE>final CompletableFuture<ElasticSearchVersion> future = client.get("/").aggregate().thenApply(response -> {<NEW_LINE>final HttpStatus status = response.status();<NEW_LINE>if (status != HttpStatus.OK) {<NEW_LINE>throw new RuntimeException("Failed to conn...
accept(Collections.emptyList());
682,957
public I_PP_Order_Qty save(@NonNull final CreateReceiptCandidateRequest request) {<NEW_LINE>final I_PP_Order_Qty record = newInstance(I_PP_Order_Qty.class);<NEW_LINE>record.setPP_Order_ID(request.getOrderId().getRepoId());<NEW_LINE>record.setPP_Order_BOMLine_ID(PPOrderBOMLineId.toRepoId(request.getOrderBOMLineId()));<N...
getOrgId().getRepoId());
1,236,258
public void deleteOnCreator(Integer creator) throws Exception {<NEW_LINE>boolean create = true;<NEW_LINE>File indexDir = new File(getIndexPath());<NEW_LINE>if (!indexDir.exists()) {<NEW_LINE>indexDir.mkdirs();<NEW_LINE>} else {<NEW_LINE>String[] children = indexDir.list();<NEW_LINE>if (children != null && children.leng...
IndexWriterConfig(Version.LUCENE_4_10_2, analyzer);
1,618,853
OHashTable.Entry<K, V> deleteEntry(int index) {<NEW_LINE>final OHashTable.Entry<K, V> removedEntry = getEntry(index);<NEW_LINE>final int freePointer = getIntValue(FREE_POINTER_OFFSET);<NEW_LINE>final int positionOffset = POSITIONS_ARRAY_OFFSET + index * OIntegerSerializer.INT_SIZE;<NEW_LINE>final int entryPosition = ge...
entryPosition + keySize + OLongSerializer.LONG_SIZE);
855,309
public static DescribeNetworkAnalyticsLatencyResponse unmarshall(DescribeNetworkAnalyticsLatencyResponse describeNetworkAnalyticsLatencyResponse, UnmarshallerContext context) {<NEW_LINE>describeNetworkAnalyticsLatencyResponse.setRequestId(context.stringValue("DescribeNetworkAnalyticsLatencyResponse.RequestId"));<NEW_LI...
("DescribeNetworkAnalyticsLatencyResponse.RoundTripLatencies[" + i + "].Province.ProvinceEn"));
1,847,774
public StartJobRunResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartJobRunResult startJobRunResult = new StartJobRunResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
JsonToken token = context.getCurrentToken();
454,580
public static boolean fastApply(Context ctx, RootCommand callback) {<NEW_LINE>try {<NEW_LINE>if (!rulesUpToDate) {<NEW_LINE>Log.i(TAG, "Using full Apply");<NEW_LINE><MASK><NEW_LINE>} else {<NEW_LINE>Log.i(TAG, "Using fastApply");<NEW_LINE>List<String> out = new ArrayList<String>();<NEW_LINE>List<String> cmds;<NEW_LINE>...
applySavedIptablesRules(ctx, true, callback);
356,011
public static <T> void replaceInjectionsWithUndo(final Project project, final T add, final T remove, final List<? extends PsiElement> psiElementsToRemove, final PairProcessor<T, T> actualProcessor) {<NEW_LINE>final UndoableAction action = new GlobalUndoableAction() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void un...
actualProcessor.process(add, remove);
31,852
final StartPiiEntitiesDetectionJobResult executeStartPiiEntitiesDetectionJob(StartPiiEntitiesDetectionJobRequest startPiiEntitiesDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startPiiEntitiesDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
endClientExecution(awsRequestMetrics, request, response);
155,509
private void concurrentPhase(GCLogTrace trace, String s) {<NEW_LINE>DateTimeStamp startTime = getClock().minus(trace.getDuration() / 1000.0d);<NEW_LINE>if ("Mark".equals(trace.getGroup(1))) {<NEW_LINE>forwardReference.setConcurrentMarkDuration(trace.getDuration());<NEW_LINE>forwardReference.setConcurrentMarkStart(start...
setConcurrentResetRelocationSetDuration(trace.getDuration());
1,766,380
public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Playable media = controller.getMedia();<NEW_LINE>if (media == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>@Nullable<NEW_LINE>final FeedItem feedItem = (media instanceof FeedMedia) ? ((Fee...
media).getItem() : null;
223,039
static void write(Manifest manifest, OutputStream out) throws IOException {<NEW_LINE>CharsetEncoder encoder = StandardCharsets.UTF_8.newEncoder();<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(LINE_LENGTH_LIMIT);<NEW_LINE>Attributes.Name versionName = Attributes.Name.MANIFEST_VERSION;<NEW_LINE>String version = manif...
manifest.mainAttributes.getValue(versionName);
672,159
final UpdateTypedLinkFacetResult executeUpdateTypedLinkFacet(UpdateTypedLinkFacetRequest updateTypedLinkFacetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTypedLinkFacetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Updat...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,255,663
public void afterCreateOperations(final OIdentifiable id) {<NEW_LINE>if (id instanceof ODocument) {<NEW_LINE>final ODocument doc = (ODocument) id;<NEW_LINE>final OImmutableClass clazz = <MASK><NEW_LINE>if (clazz != null) {<NEW_LINE>OClassIndexManager.checkIndexesAfterCreate(doc, this);<NEW_LINE>if (clazz.isFunction()) ...
ODocumentInternal.getImmutableSchemaClass(this, doc);
942,617
public void store(File file) throws IOException {<NEW_LINE>OutputStream os = null;<NEW_LINE>try {<NEW_LINE>File parent = file.getParentFile();<NEW_LINE>if (parent != null && !parent.exists()) {<NEW_LINE>parent.mkdirs();<NEW_LINE>}<NEW_LINE>os = FileUtils.createOutputStream(file);<NEW_LINE>for (Iterator it = getMap().ke...
getName().length());
150,445
public Datapoint unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Datapoint datapoint = new Datapoint();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok...
"unixTimestamp").unmarshall(context));
164,260
public void driverFinished(DriverContext driverContext) {<NEW_LINE>requireNonNull(driverContext, "driverContext is null");<NEW_LINE>if (!drivers.remove(driverContext)) {<NEW_LINE>throw new IllegalArgumentException("Unknown driver " + driverContext);<NEW_LINE>}<NEW_LINE>// always update last execution end time<NEW_LINE>...
getProcessedInputDataSize().toBytes());
644,138
private void openTransport4Sender(FileTransportChannelEntity fileTransport) throws GovernanceException {<NEW_LINE>IWeEventFileClient fileClient;<NEW_LINE>try {<NEW_LINE>fileClient = this.buildIWeEventFileClient(fileTransport.getBrokerId(), fileTransport.getGroupId(), fileTransport.getNodeAddress());<NEW_LINE>if (String...
fileTransport.getGroupId(), fileClient);
1,189,223
private void infoDifference(final VariantContext eval, final VariantContext truth) {<NEW_LINE>if (eval.hasAttribute(this.evalInfoKey) && truth.hasAttribute(truthInfoKey)) {<NEW_LINE>final double evalVal = Double.valueOf((String) eval.getAttribute(this.evalInfoKey));<NEW_LINE>final double truthVal = Double.valueOf((Stri...
snpSumDelta += Math.sqrt(deltaSquared);
200,640
private static ImageData convertToSWT(BufferedImage bufferedImage) {<NEW_LINE>if (bufferedImage.getColorModel() instanceof DirectColorModel) {<NEW_LINE>DirectColorModel colorModel = (DirectColorModel) bufferedImage.getColorModel();<NEW_LINE>PaletteData palette = new PaletteData(colorModel.getRedMask(), colorModel.getGr...
), colorModel.getBlueMask());
237,488
private void writeConfiguration(List<File> files, List<ConfigFileGroup> groups) {<NEW_LINE>assert mutex().isWriteAccess();<NEW_LINE>File projectDir = FileUtil.toFile(project.getProjectDirectory());<NEW_LINE>if (projectDir == null) {<NEW_LINE>LOGGER.log(Level.WARNING, "The directory of project {0} is null", project);<NE...
SPRING_DATA, SPRING_DATA_NS, null, null);
64,013
private void updateNotification(String content) {<NEW_LINE>String ticker = String.format(getString(R.string.media_notif_ticker), getString(R.string.app_name));<NEW_LINE>// TODO check if updating the Intent is really necessary<NEW_LINE>Intent showDetailsIntent = new Intent(this, FileDisplayActivity.class);<NEW_LINE>show...
showDetailsIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
1,607,183
private void writeBam(final JavaRDD<GATKRead> reads, final String inputBamPath, final boolean isPaired, final JavaSparkContext ctx, SAMFileHeader header) {<NEW_LINE>// Only retain header sequences that were aligned to.<NEW_LINE>// This invokes an action and therefore the reads must be cached.<NEW_LINE>reads.persist(Sto...
CouldNotCreateOutputFile(outputPath, "Writing failed", e);
249,135
// AdapterView#OnItemClickListener<NEW_LINE>public void onItemClick(AdapterView<?> parent, View view, int position, long id) {<NEW_LINE>ActivityChooserViewAdapter adapter = (ActivityChooserViewAdapter) ((ListView) parent).getAdapterSource();<NEW_LINE>final int itemViewType = adapter.getItemViewType(position);<NEW_LINE>...
getContext().startActivity(launchIntent);
1,633,976
public void appendRules(List<SequenceMatchRules.Rule> rules) {<NEW_LINE>if (verbose)<NEW_LINE>log.info("Read " + rules.size() + " rules");<NEW_LINE>// Put rules into stages<NEW_LINE>if (collapseExtractionRules) {<NEW_LINE>rules = collapse(rules);<NEW_LINE>if (verbose)<NEW_LINE>log.info("Collapsing into " + rules.size()...
debug("Ignoring inactive rule: " + aer.name);
33,121
protected int doWork() {<NEW_LINE>IOUtil.assertFileIsReadable(INPUT);<NEW_LINE>IOUtil.assertFileIsReadable(CLUSTER_FILE);<NEW_LINE>IOUtil.assertFileIsWritable(OUTPUT);<NEW_LINE>final InfiniumEGTFile infiniumEGTFile;<NEW_LINE>try {<NEW_LINE>infiniumEGTFile = new InfiniumEGTFile(CLUSTER_FILE);<NEW_LINE>} catch (IOExcepti...
write(joiner.toString());
23,189
public void onNext(StreamRequestA request) {<NEW_LINE>String s = request.toString();<NEW_LINE>lastClientMessage = s;<NEW_LINE>s = "<br>...(( " + s + " onNext at server called at: " + System.currentTimeMillis() + " ))";<NEW_LINE>// limit string to first 200 characters<NEW_LINE>if (s.length() > 200) {<NEW_LINE>s = s.subs...
" hc: " + responseObserver.hashCode());
1,358,280
public Future<Channel> updatePipelineForHttpTunneling(ChannelPipeline pipeline, Uri requestUri) {<NEW_LINE>Future<Channel> whenHandshaked = null;<NEW_LINE>if (pipeline.get(HTTP_CLIENT_CODEC) != null)<NEW_LINE>pipeline.remove(HTTP_CLIENT_CODEC);<NEW_LINE>if (requestUri.isSecured()) {<NEW_LINE>if (!isSslHandlerConfigured...
AHC_HTTP_HANDLER, HTTP_CLIENT_CODEC, newHttpClientCodec());
186,790
static void c_1_3_1() throws Exception {<NEW_LINE>OssFileSystem oss = new OssFileSystem(OSS_VERSION, OSS_END_POINT, OSS_BUCKET_NAME, OSS_ACCESS_ID, OSS_ACCESS_KEY);<NEW_LINE>System.out.<MASK><NEW_LINE>final String ossDir = OSS_PREFIX_URI + "alink/data/temp/";<NEW_LINE>if (!oss.exists(new Path(ossDir))) {<NEW_LINE>oss.m...
println(oss.getKind());
176,175
public static void updateDescriptionTextWithSize(DownloadActivity activity, View view) {<NEW_LINE>TextView descriptionText = (TextView) view.findViewById(R.id.rightTextView);<NEW_LINE>TextView messageTextView = (TextView) view.findViewById(R.id.leftTextView);<NEW_LINE>ProgressBar sizeProgress = (ProgressBar) view.findV...
100 / fs.getBlockCount());
1,293,091
public void purgeEnteredUsers() {<NEW_LINE>for (AbstractMap.Entry<String, Meeting> entry : this.meetings.entrySet()) {<NEW_LINE><MASK><NEW_LINE>Meeting meeting = entry.getValue();<NEW_LINE>for (AbstractMap.Entry<String, Long> enteredUser : meeting.getEnteredUsers().entrySet()) {<NEW_LINE>String userId = enteredUser.get...
Long now = System.currentTimeMillis();
1,388,950
public static ImageInfo parseDeviantArt(final JsonObject object) {<NEW_LINE>String urlOriginal = null;<NEW_LINE>String thumbnailUrl = null;<NEW_LINE>String title = null;<NEW_LINE>String tags = null;<NEW_LINE>String type = null;<NEW_LINE>Long width = null;<NEW_LINE>Long height = null;<NEW_LINE>final Long size = (long) 0...
type = object.getString("imagetype");