idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,697,908
public void marshall(VolumeConfiguration volumeConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (volumeConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMar...
volumeConfiguration.getMountPoint(), MOUNTPOINT_BINDING);
3,496
final GetStreamingImageResult executeGetStreamingImage(GetStreamingImageRequest getStreamingImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getStreamingImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
531,865
public Object calculate(Context ctx) {<NEW_LINE>if (param == null || param.isLeaf()) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("urlencode" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>IParam sub0 = param.getSub(0);<NEW_LINE>IParam sub1 = param.getSub(1);<NEW_LI...
MessageManager mm = EngineMessage.get();
1,761,878
public com.amazonaws.services.personalizeevents.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.personalizeevents.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.personalizeevents.model.Resou...
int originalDepth = context.getCurrentDepth();
1,775,406
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>if (sources[0] instanceof String) {<NEW_LINE>try {<NEW_LINE>final DocumentBuilder builder = getDocumentBuilder();<...
), ctx.isJavaScriptContext());
249,901
public MultipartPart call() throws BackgroundException {<NEW_LINE>try {<NEW_LINE>final HttpRange range = HttpRange.byLength(offset, length);<NEW_LINE>final Path bucket = containerService.getContainer(source);<NEW_LINE>final MultipartPart part = session.getClient().multipartUploadPartCopy(multipart, partNumber, bucket.i...
attributes().getVersionId());
911,011
public void marshall(StartChatContactRequest startChatContactRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (startChatContactRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(startChatContac...
startChatContactRequest.getSupportedMessagingContentTypes(), SUPPORTEDMESSAGINGCONTENTTYPES_BINDING);
636,800
// Config parameters to be implemented in future<NEW_LINE>// private boolean settingSimulation;<NEW_LINE>// private boolean settingLoadResourcesFromPhn;<NEW_LINE>// private boolean settingAudioFeedback;<NEW_LINE>// private boolean setting24bit;<NEW_LINE>// private boolean settingAdvanced;<NEW_LINE>@Override<NEW_LINE>pr...
, bundle.getString(LOG_FILE_KEY));
208,535
public <T extends Enum<T>> Registry registerEnum(Class<T> clazz, int id) {<NEW_LINE>if (id < 1)<NEW_LINE>throw new IllegalArgumentException("enum ids start at 1.");<NEW_LINE>if (id >= strategy.enums.size())<NEW_LINE>grow(strategy.enums, id + 1);<NEW_LINE>else if (strategy.enums.get(id) != null) {<NEW_LINE>throw new Ill...
throw new IllegalArgumentException("Duplicate registration for: " + clazz);
604,454
private static ObjectParser<Builder, Void> createParser(boolean ignoreUnknownFields) {<NEW_LINE>ObjectParser<Builder, Void> parser = new ObjectParser<>(TYPE, ignoreUnknownFields, Builder::new);<NEW_LINE>parser.declareString((c, s) -> {<NEW_LINE>}, CONFIG_TYPE);<NEW_LINE>parser.declareString(Builder::setId, ID);<NEW_LIN...
declareInt(Builder::setMaxNumThreads, MAX_NUM_THREADS);
1,464,428
static ProjectSettings create(@NotNull final ProjectFilePaths projectFilePaths, @NotNull final PluginConfiguration currentPluginConfig) {<NEW_LINE>final Map<String, String> mapForSerialization = new TreeMap<>();<NEW_LINE>mapForSerialization.put(CHECKSTYLE_VERSION_SETTING, currentPluginConfig.getCheckstyleVersion());<NE...
(currentPluginConfig.isScanBeforeCheckin()));
1,278,847
@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response personalizePageContainers(@Context final HttpServletRequest request, @Context final HttpServletResponse response, final PersonalizationPersonaPageForm personalizationPersonaPageForm) throws Dot...
String pageId = personalizationPersonaPageForm.getPageId();
760,436
public void onCompletion(Void result, Exception exception) {<NEW_LINE>callbackTracker.markOperationEnd();<NEW_LINE>if (exception == null) {<NEW_LINE>try {<NEW_LINE>RestMethod restMethod = restRequest.getRestMethod();<NEW_LINE>logger.trace("Forwarding {} to the IdConverter/Router", restMethod);<NEW_LINE>String receivedI...
InboundIdConverterCallback(restRequest, restResponseChannel, headCallback);
1,330,394
public void read(org.apache.thrift.protocol.TProtocol prot, startUpdate_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.get(0)) ...
findByValue(iprot.readI32());
1,046,149
private Transition createTransition(KrollDict props, String key) {<NEW_LINE>// Validate arguments.<NEW_LINE>if ((props == null) || (key == null)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Create the requested transition.<NEW_LINE>Transition transition = null;<NEW_LINE>final int transitionType = props.getInt(key);<...
R.id.navigationBarBackground, true);
277,227
static void rtAssertEquals(final double[] a, final double[] b, final double eps) {<NEW_LINE>if ((a == null) && (b == null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ((a != null) && (b != null)) {<NEW_LINE>final int alen = a.length;<NEW_LINE>if (alen != b.length) {<NEW_LINE>error("Array lengths not equal: " + alen + ",...
? "a" : "b") + " is null");
1,406,099
static boolean shouldUpdate(@Prop Diff<Component> childComponent, @Prop(optional = true) Diff<Boolean> scrollbarEnabled, @Prop(optional = true) Diff<Boolean> scrollbarFadingEnabled, @Prop(optional = true) Diff<Boolean> fillViewport, @Prop(optional = true) Diff<Boolean> nestedScrollingEnabled, @Prop(optional = true) Dif...
equals(incrementalMountEnabled.getNext());
1,553,494
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {<NEW_LINE>com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields());<NEW_LINE>while (tru...
setToken(input.readString());
679,404
private void detectCtor(ClassDescriptor desc) {<NEW_LINE>if (desc.ctor == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Constructor ctor : desc.clazz.getDeclaredConstructors()) {<NEW_LINE>JsonCreator jsonCreator = getJsonCreator(ctor.getAnnotations());<NEW_LINE>if (jsonCreator == null) {<NEW_LINE>continue;<NEW_LINE...
ctor.parameters.add(binding);
579,559
private void startForm(int AD_Form_ID) {<NEW_LINE>FormFrame ff = null;<NEW_LINE>if (Ini.isPropertyBool(Ini.P_SINGLE_INSTANCE_PER_WINDOW)) {<NEW_LINE>ff = menu.getWindowManager().findForm(AD_Form_ID);<NEW_LINE>if (ff != null) {<NEW_LINE>ff.toFront();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// Yamel Senih FR [ 11...
ok = ff.openForm(AD_Form_ID);
1,199,467
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>getUserAuthorizations_result result = new getUserAuthorizations_result();<NEW_LINE>if (e instanceof ThriftSecurityException) {<NEW_LINE>result.sec = ...
INTERNAL_ERROR, e.getMessage());
1,725,945
public String replaceValue(final String matchValue, final MacroRequest request) throws MacroParseException {<NEW_LINE>final List<String> parameters = splitMacroParameters(matchValue<MASK><NEW_LINE>if (CollectionUtil.isEmpty(parameters) || parameters.size() != 1) {<NEW_LINE>throw new MacroParseException("exactly one par...
, Collections.singletonList("Iso8601"));
1,650,959
private static double[][] sparseMeans(List<? extends DBIDs> clusters, double[][] means, Relation<? extends SparseNumberVector> relation) {<NEW_LINE>final int k = means.length;<NEW_LINE>double[][] newMeans = new double[k][];<NEW_LINE>for (int i = 0; i < k; i++) {<NEW_LINE>DBIDs list = clusters.get(i);<NEW_LINE>if (list....
, relation.get(iter));
612,946
private String parseMember(ShapeId parent, Set<String> required, Set<String> defined, Set<String> remaining) {<NEW_LINE>// Parse optional member traits.<NEW_LINE>List<TraitEntry> memberTraits = parseDocsAndTraits();<NEW_LINE>SourceLocation memberLocation = currentLocation();<NEW_LINE>String memberName = ParserUtils.par...
(memberId).source(memberLocation);
505,012
final GetNodeResult executeGetNode(GetNodeRequest getNodeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getNodeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GetNodeRequest> request = null;<NEW_LINE>Respo...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,671,333
public List<Relationship> byContentType(final String contentTypeInode, String orderBy) {<NEW_LINE>List<Relationship> relationships = new ArrayList<>();<NEW_LINE>ContentTypeIf contentTypeIf = null;<NEW_LINE>try {<NEW_LINE>contentTypeIf = APILocator.getContentTypeAPI(APILocator.systemUser()).find(contentTypeInode);<NEW_L...
orderBy = SQLUtil.sanitizeSortBy(orderBy);
1,154,077
final GetTemporaryGlueTableCredentialsResult executeGetTemporaryGlueTableCredentials(GetTemporaryGlueTableCredentialsRequest getTemporaryGlueTableCredentialsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTemporaryGlueTableCredentialsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,459,599
private static Converter<Collation, Document> toMongoDocumentConverter() {<NEW_LINE>return source -> {<NEW_LINE>Document document = new Document();<NEW_LINE>document.append("locale", source.locale.asString());<NEW_LINE>source.strength.ifPresent(strength -> {<NEW_LINE>document.append("strength", strength.getLevel());<NE...
.append("backwards", it));
86,161
private ConfigItem parseValue(String status, String data) {<NEW_LINE>ConfigItem config = new ConfigItem();<NEW_LINE>if ("C".equals(status)) {<NEW_LINE>if (StringUtils.isEmpty(data)) {<NEW_LINE>data = "1";<NEW_LINE>}<NEW_LINE>int count = (int) Double.parseDouble(data);<NEW_LINE>config.setCount(count);<NEW_LINE>config.se...
sum = Double.parseDouble(data);
638,443
private JComponent createColorButtonsPanel(final FileColorConfiguration configuration) {<NEW_LINE>final JPanel result = new JPanel(new BorderLayout());<NEW_LINE>result.setBorder(BorderFactory.createEmptyBorder(5<MASK><NEW_LINE>final JPanel inner = new JPanel();<NEW_LINE>inner.setLayout(new BoxLayout(inner, BoxLayout.X_...
, 5, 5, 5));
1,549,116
protected StringBuilder print(StringBuilder b) {<NEW_LINE>switch(op.type) {<NEW_LINE>case PREFIX:<NEW_LINE>b.append('(');<NEW_LINE>printOp(b, false, true);<NEW_LINE>args.get(0).print(b);<NEW_LINE>return b.append(')');<NEW_LINE>case POSTFIX:<NEW_LINE>b.append('(');<NEW_LINE>args.get<MASK><NEW_LINE>return printOp(b, true...
(0).print(b);
820,351
public void updateMessageDigest(MessageDigest messageDigest, int len) {<NEW_LINE>if (this.currentBuffer == null) {<NEW_LINE>// This stream doesn't have any data in it...<NEW_LINE>return;<NEW_LINE>} else if (len == 0) {<NEW_LINE>return;<NEW_LINE>} else if (len < 0) {<NEW_LINE><MASK><NEW_LINE>} else {<NEW_LINE>if (this.n...
throw new IllegalArgumentException("len must be 0 or greater: " + len);
1,091,695
private void createHybridP25VoiceChannels() {<NEW_LINE>Channel gotoChannel = null;<NEW_LINE>for (SiteFrequency siteFrequency : getSiteFrequencyTableView().getItems()) {<NEW_LINE>// Don't create a channel configuration for the Motorola Type II control channel - not currently supported<NEW_LINE>if (!isControl(siteFrequen...
post(new ViewChannelRequest(gotoChannel));
81,374
private void onPropertyChange(EntityCursor entity, EntityType entityType, PropertyCursor propertyCursor, long[] tokens, int propertyKeyId, int[] existingPropertyKeyIds, Value beforeValue, Value afterValue) {<NEW_LINE>assert noSchemaChangedInTx();<NEW_LINE>Collection<IndexDescriptor> indexes = storageReader.valueIndexes...
afterValue, propertyIds, materializedProperties, memoryTracker);
1,297,679
public static boolean resetSyncState(Context context) {<NEW_LINE>// set all shows as not merged with Hexagon<NEW_LINE>SgRoomDatabase.getInstance(context).sgShow2Helper().setHexagonMergeNotCompletedForAll();<NEW_LINE>// reset sync properties<NEW_LINE>SharedPreferences.Editor editor = PreferenceManager.getDefaultSharedPr...
editor.remove(HexagonSettings.KEY_LAST_SYNC_EPISODES);
520,094
final PutPrincipalMappingResult executePutPrincipalMapping(PutPrincipalMappingRequest putPrincipalMappingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putPrincipalMappingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,217,901
// NOSONAR complexity<NEW_LINE>@Override<NEW_LINE>public boolean dispatch(Message<?> message) {<NEW_LINE>int dispatched = 0;<NEW_LINE>int sequenceNumber = 1;<NEW_LINE>Collection<MessageHandler> handlers = this.getHandlers();<NEW_LINE>if (this.requireSubscribers && handlers.size() == 0) {<NEW_LINE><MASK><NEW_LINE>}<NEW_...
throw new MessageDispatchingException(message, "Dispatcher has no subscribers");
1,342,728
public void process(CommandProcess process) {<NEW_LINE>try {<NEW_LINE>if (StringUtils.isBlank(propertyName) && StringUtils.isBlank(propertyValue)) {<NEW_LINE>// show all system properties<NEW_LINE>process.appendResult(new SystemPropertyModel(System.getProperties()));<NEW_LINE>} else if (StringUtils.isBlank(propertyValu...
end(1, "There is no property with the key " + propertyName);
1,275,938
public static String readExcel(String filePath) throws IOException {<NEW_LINE>File file = new File(filePath);<NEW_LINE>FileInputStream inputStream = null;<NEW_LINE>StringBuilder toReturn = new StringBuilder();<NEW_LINE>try {<NEW_LINE>inputStream = new FileInputStream(file);<NEW_LINE>Workbook baeuldungWorkBook = new XSS...
("--------------------------------------------------------------------").append(ENDLINE);
1,594,668
public static void datasetPatch(String datasetName) throws IOException {<NEW_LINE>// String datasetName =<NEW_LINE>// String.format(DATASET_NAME, "your-project-id", "your-region-id", "your-dataset-id");<NEW_LINE>// Initialize the client, which will be used to interact with the service.<NEW_LINE>CloudHealthcare client =...
datasets().get(datasetName);
731,704
final DescribeClusterTracksResult executeDescribeClusterTracks(DescribeClusterTracksRequest describeClusterTracksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClusterTracksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,399,015
public void actionPerformed(ActionEvent evt) {<NEW_LINE>try {<NEW_LINE>cam.removeAll();<NEW_LINE>VideoControl cnt = (VideoControl) player.nativePlayer.getControl("VideoControl");<NEW_LINE>byte[] pic = cnt.getSnapshot("encoding=jpeg&width=" + current.getWidth() + "&height=" + current.getHeight());<NEW_LINE>String imageP...
getInstance().openOutputStream(imagePath);
1,609,497
public static int resetIdleTimer(String assertionName, int assertionId) throws IOKitException {<NEW_LINE>if (isMacOsVersionEqualOrGreater(7, 3)) {<NEW_LINE>IntByReference assertionIdRef = new IntByReference(assertionId > 0 ? assertionId : 0);<NEW_LINE>CFStringRef name = CFStringRef.toCFStringRef(assertionName);<NEW_LIN...
, System.getProperty("os.version"));
227,025
public void changedVisibility(final IViewEdge<?> edge, final boolean visible) {<NEW_LINE>if (visible) {<NEW_LINE>final Node source = m_sourceNode.getNode();<NEW_LINE>final Node target = m_targetNode.getNode();<NEW_LINE>// Make sure "all endpoints lie in a graph"<NEW_LINE>if ((source.getGraph() == null) || (target.getGr...
m_graph.setRealizer(yedge, m_realizer);
439,239
public static Cell<Double> pausableClock(Stream<Unit> sPause, Stream<Unit> sResume, Cell<Double> clock) {<NEW_LINE>Cell<Optional<Double>> pauseTime = sPause.snapshot(clock, (u, t) -> Optional.<Double>of(t)).orElse(sResume.map(u -> Optional.<Double>empty())).hold(Optional<MASK><NEW_LINE>Cell<Double> lostTime = sResume.<...
.<Double>empty());
264,443
protected static // The hash is the value the signatures are over.<NEW_LINE>List<byte[]> validateAndSort(List<ECKey> pubkeys, byte[] hash, List<Signature> signatures) {<NEW_LINE>// This needs to be the same sort that ScriptBuilder.createRedeemScript does.<NEW_LINE>pubkeys.sort(ECKey.PUBKEY_COMPARATOR);<NEW_LINE>List<by...
, sortedSigs.size()));
1,404,050
private void sortSelectedMarkersDoorToDoor(final MapActivity mapActivity, final boolean startFromLoc, final Location myLoc) {<NEW_LINE>new AsyncTask<Void, Void, List<MapMarker>>() {<NEW_LINE><NEW_LINE>private ProgressDialog dialog;<NEW_LINE><NEW_LINE>private long startDialogTime;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>p...
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
1,466,624
private Map<ServerUUID, List<ExtensionData>> flatMapByServerUUID(Map<ServerUUID, List<ExtensionInformation>> extensionsByServerUUID, Map<Integer, ExtensionData.Builder> extensionDataByPluginID) {<NEW_LINE>Map<ServerUUID, List<ExtensionData>> extensionDataByServerUUID = new HashMap<>();<NEW_LINE>for (Map.Entry<ServerUUI...
get(extensionInformation.getId());
332,745
public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new EPLDatabaseMySQLDatabaseConnection());<NEW_LINE>execs<MASK><NEW_LINE>execs.add(new EPLDatabase2HistoricalStar());<NEW_LINE>execs.add(new EPLDatabase2HistoricalStarInner());<NEW_LIN...
.add(new EPLDatabaseSimpleJoinLeft());
1,721,794
private FxRateScenarioArray computeCross(FxRateScenarioArray other, CurrencyPair crossPairAC) {<NEW_LINE>// aim is to convert AAA/BBB and BBB/CCC to AAA/CCC<NEW_LINE>Currency currA = crossPairAC.getBase();<NEW_LINE>Currency currC = crossPairAC.getCounter();<NEW_LINE>// given the conventional cross rate pair, order the ...
map(v -> 1 / v);
99,802
public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point topLeftPoint) {<NEW_LINE>if (this.latLongs.size() < 2 || (this.paintStroke == null && this.paintFill == null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (this.boundingBox != null && !this.boundingBox.intersects(boundingBox)) {<N...
path.moveTo(x, y);
229,261
public Object resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext) throws ParameterResolutionException {<NEW_LINE>Class<?> type = parameterContext<MASK><NEW_LINE>if (type == CqlSession.class) {<NEW_LINE>if (session == null) {<NEW_LINE>throw new IllegalStateException(String.format("Can'...
.getParameter().getType();
1,161,764
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String name, Boolean deleteMetrics, Boolean deleteEmptyServerFarm, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required ...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,031,498
public static com.hazelcast.cache.impl.CacheEventDataImpl decode(ClientMessage.ForwardFrameIterator iterator) {<NEW_LINE>// begin frame<NEW_LINE>iterator.next();<NEW_LINE>ClientMessage.Frame initialFrame = iterator.next();<NEW_LINE>int cacheEventType = decodeInt(initialFrame.content, CACHE_EVENT_TYPE_FIELD_OFFSET);<NEW...
decodeNullable(iterator, DataCodec::decode);
1,349,639
protected void updateProblemIndication() {<NEW_LINE>if (updateProblemIndication) {<NEW_LINE>BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK, "org.opendds.modeling.sdk.model.editor", 0, null, new Object[] <MASK><NEW_LINE>for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {<NEW_LINE>if (ch...
{ editingDomain.getResourceSet() });
1,799,203
protected void sendMessage(String messageBytes, String bridgeId) {<NEW_LINE>String bridgeIp = bridgeIpConfig.get(bridgeId);<NEW_LINE>Integer bridgePort = bridgePortConfig.get(bridgeId);<NEW_LINE>if (bridgePort == null) {<NEW_LINE>bridgePort = DEFAULT_PORT;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>byte[] buffer = getMessageBy...
IPAddress = InetAddress.getByName(bridgeIp);
154,645
public void registerNode(RegisterNodeRequest request, StreamObserver<SimpleResponse> responseObserver) {<NEW_LINE>SimpleResponse.<MASK><NEW_LINE>if (checkVersionError(request.getVersion(), responseObserver)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>appMasterServer.updateRpcLastContact();<NEW_LINE>try {<NEW_LINE>String cl...
Builder response = SimpleResponse.newBuilder();
1,193,185
private void mergePluginFilesFromDir(final CommandConsole console, String sourcePath, String targetPath) {<NEW_LINE>console.printlnInfoMessage<MASK><NEW_LINE>File sourcePathFile = new File(sourcePath);<NEW_LINE>if (!sourcePathFile.exists()) {<NEW_LINE>abort(console, getMessage("MergePluginFilesTask.merging.plugin.sourc...
(getMessage("MergePluginFilesTask.merging.plugin.dir", sourcePath));
971,100
private void drawCompassCircle(Canvas canvas, RotatedTileBox tileBox, int circleNumber, QuadPoint center, RenderingLineAttributes attrs) {<NEW_LINE>if (!tileBox.isZoomAnimated()) {<NEW_LINE>float radiusLength = radius * circleNumber;<NEW_LINE>float innerRadiusLength = radiusLength - attrs.paint.getStrokeWidth() / 2;<NE...
canvas.drawPath(arrow, triangleNorthPaint);
234,871
public void onClick(View v) {<NEW_LINE>// Adds first parent<NEW_LINE>ArrayList<HorizontalChild> childList = new ArrayList<>();<NEW_LINE>int parentNumber = mTestDataItemList.size();<NEW_LINE>HorizontalChild horizontalChild = new HorizontalChild();<NEW_LINE>horizontalChild.setChildText(getString(R.string.child_insert_tex...
mTestDataItemList.add(2, horizontalParent);
996,245
private HDLModel writeHDL(String hdl, File digFile) throws IOException, HGSEvalException, ElementNotFoundException, PinException, NodeException {<NEW_LINE>// Creates the simulation model to ensure the circuit is error free.<NEW_LINE>new ModelCreator(circuitProvider.getCurrentCircuit(), libraryProvider.getCurrentLibrary...
().getOutputStream(verilogFile));
1,076,956
private void init() throws NullPointerException {<NEW_LINE>try {<NEW_LINE>configuration = new HdfsConfiguration();<NEW_LINE>if (CommonUtils.loadKerberosConf(configuration)) {<NEW_LINE>hdfsUser = "";<NEW_LINE>}<NEW_LINE>String defaultFS = configuration.get(Constants.FS_DEFAULT_FS);<NEW_LINE>// first get key from core-si...
fs = FileSystem.get(configuration);
1,714,804
public static void main(String[] args) throws InterruptedException, IllegalArgumentException {<NEW_LINE>// Instantiate a cryptography async client that will be used to perform crypto operations. Notice that the client is using default Azure<NEW_LINE>// credentials. To make default credentials work, ensure that environm...
.getPlainText().length));
1,064,027
File downloadProjectIfNotExists(final ProjectDirectoryMetadata proj, final int execId) throws IOException {<NEW_LINE>final String projectDir = generateProjectDirName(proj);<NEW_LINE>if (proj.getInstalledDir() == null) {<NEW_LINE>proj.setInstalledDir(new File(this.projectCacheDir, projectDir));<NEW_LINE>}<NEW_LINE>// If...
downloadAndUnzipProject(proj, execId, tempDir);
1,796,908
protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_NAME, new ColumnMeta(COLUMN_NAME, "varchar(64)", false, true));<NEW_LINE>columnsType.put(COLUMN_NAME, Fields.FIELD_TYPE_VAR_STRING);<NEW_LINE>columns.put(COLUMN_SHARDING_NODE, new ColumnMeta(COLUMN_SHARDING_NODE, "varchar(64)", true));<NEW_LINE>columnsTyp...
put(COLUMN_SQL_MAX_LIMIT, Fields.FIELD_TYPE_LONG);
545,932
static PTransform<PCollection<Metadata>, PCollection<String>> moveAndConsumeMatches() {<NEW_LINE>return new PTransform<PCollection<Metadata>, PCollection<String>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public PCollection<String> expand(PCollection<Metadata> input) {<NEW_LINE>// TODO(pabloem, dhercher): Use a Beam st...
of(new RemoveFiles()));
852,582
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.ide.core.io.ConnectionPoint#saveState(com.aptana.ide.core.io.epl.IMemento)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void saveState(IMemento memento) {<NEW_LINE>super.saveState(memento);<NEW_LINE>memento.createChild(ELEMENT_HOST).putTextData(host);<NEW_LINE...
(ELEMENT_TRANSFER_TYPE).putTextData(transferType);
824,199
private UaViewNode newViewNode(NodeId nodeId, List<DataValue> attributeValues) throws UaException {<NEW_LINE>DataValue nodeIdDataValue = attributeValues.get(0);<NEW_LINE>StatusCode nodeIdStatusCode = nodeIdDataValue.getStatusCode();<NEW_LINE>if (nodeIdStatusCode != null && nodeIdStatusCode.isBad()) {<NEW_LINE>throw new...
.getValue().getValue();
1,530,604
public void close(EndReason reason, boolean definitelyClosed, Long kmsDisconnectionTime) {<NEW_LINE>log.debug("PARTICIPANT {}: Closing user", this.getParticipantPublicId());<NEW_LINE>if (isClosed()) {<NEW_LINE>log.warn("PARTICIPANT {}: Already closed", this.getParticipantPublicId());<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
SubscriberEndpoint subscriber = entry.getValue();
1,396,610
public static DynamicConfigAddMapConfigCodec.RequestParameters decodeRequest(ClientMessage clientMessage) {<NEW_LINE>ClientMessage.ForwardFrameIterator iterator = clientMessage.frameIterator();<NEW_LINE>RequestParameters request = new RequestParameters();<NEW_LINE>ClientMessage.Frame initialFrame = iterator.next();<NEW...
mergePolicy = StringCodec.decode(iterator);
296,948
private SingularField compareSingularMessage(@Nullable Message actual, @Nullable Message expected, @Nullable Message defaultValue, boolean excludeNonRecursive, FieldDescriptor fieldDescriptor, String fieldName, FluentEqualityConfig config) {<NEW_LINE>Result.Builder result = Result.builder();<NEW_LINE>// Use the default...
diffMessages(actual, expected, config);
1,561,620
public static DOMNode create(String stringDefinition) {<NEW_LINE>if (stringDefinition.charAt(0) != '[') {<NEW_LINE>return createFromPathNames(stringDefinition);<NEW_LINE>// throw new IllegalArgumentException("Missing opening bracket in '"+stringDefinition+"'");<NEW_LINE>}<NEW_LINE>if (stringDefinition.charAt(stringDefi...
"Missing comma delimeter in '" + stringDefinition + "' after pos " + i1);
922,677
public void LAPACK_sggevx(BytePointer arg0, BytePointer arg1, BytePointer arg2, BytePointer arg3, int[] arg4, float[] arg5, int[] arg6, float[] arg7, int[] arg8, float[] arg9, float[] arg10, float[] arg11, float[] arg12, int[] arg13, float[] arg14, int[] arg15, int[] arg16, int[] arg17, float[] arg18, float[] arg19, fl...
arg25, arg26, arg27, arg28);
1,105,809
public void run() throws SubjectAreaFVTCheckedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException {<NEW_LINE>long now = new Date().getTime();<NEW_LINE>try {<NEW_LINE>glossaryFVT.createPastToGlossary(now, DEFAULT_TEST_PAST_GLOSSARY_NAME);<NEW_LINE>} catch (InvalidParameterException ...
).getGUID(), term5);
288,916
private boolean matchIsEqual(FixedLengthElementArray matchHashTable, long hashBucketBit, Object[] query) {<NEW_LINE>HollowHashIndexState hashState = hashStateVolatile;<NEW_LINE>for (int i = 0; i < hashState.getMatchFields().length; i++) {<NEW_LINE>HollowHashIndexField field = hashState.getMatchFields()[i];<NEW_LINE>int...
] fieldPath = field.getSchemaFieldPositionPath();
580,706
public static boolean hasDiff(Map<TopicPartition, List<ReplicaPlacementInfo>> initialReplicaDistribution, Map<TopicPartition, ReplicaPlacementInfo> initialLeaderDistribution, ClusterModel optimizedClusterModel) {<NEW_LINE>Map<TopicPartition, List<ReplicaPlacementInfo>> finalReplicaDistribution = optimizedClusterModel.g...
finalReplicas = finalReplicaDistribution.get(tp);
59,681
private void moveItem(TreeItem itemToMove, TreeItem parent) {<NEW_LINE>if (parent == null) {<NEW_LINE>if (tree.getItemCount() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>parent = tree.getItem(0);<NEW_LINE>}<NEW_LINE>File parentFile = (File) parent.getData();<NEW_LINE>if (parentFile != null && !parentFile.isDirectory()...
(File) itemToMove.getData();
161,988
public void start() {<NEW_LINE>Duration[] defaultLatchIntervals = { Duration.apply(1, TimeUnit.MINUTES) };<NEW_LINE>Map<String, CustomHttpHandler> handlers = mPrometheusEnabled ? new Map.Map1<>("/prometheus", new PrometheusHandler()) : Map$.MODULE$.empty();<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>AdminServic...
("build.properties").openStream());
1,462,720
private void init() {<NEW_LINE>// WARNING: called from ctor so must not be overridden (i.e. must be private or final)<NEW_LINE>setLayout(new BorderLayout(5, 0));<NEW_LINE>// Register the handler for focus listening. This handler will<NEW_LINE>// only notify the registered when the text changes from when<NEW_LINE>// the...
.addActionListener(new AddListener());
1,499,326
// TODO: this method is same as the one for ScanPrel...eventually we should consolidate<NEW_LINE>// this and few other methods in a common base class which would be extended<NEW_LINE>// by both logical and physical rels.<NEW_LINE>// TODO: Further changes may have caused the versions to diverge.<NEW_LINE>// TODO: Does n...
1, stats.getRecordCount());
1,367,762
final DBCluster executeModifyDBCluster(ModifyDBClusterRequest modifyDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientE...
invoke(request, responseHandler, executionContext);
302,348
public static boolean isValueBlock(String hexString) {<NEW_LINE>byte[] b = Common.hex2Bytes(hexString);<NEW_LINE>if (b != null && b.length == 16) {<NEW_LINE>// Google some NXP info PDFs about MIFARE Classic to see how<NEW_LINE>// Value Blocks are formatted.<NEW_LINE>// For better reading (~ = invert operator):<NEW_LINE...
0xFF) == b[13]);
1,400,956
void moveToTheTail(final OCacheEntry entry) {<NEW_LINE>if (tail == entry) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final OCacheEntry next = entry.getNext();<NEW_LINE>final OCacheEntry prev = entry.getPrev();<NEW_LINE>final boolean newEntry = entry.getContainer() == null;<NEW_LINE>assert entry.getContainer...
assert entry.getNext() == null;
1,580,100
private static SortedDocValues mergeSortedValues(List<SortedDocValuesSub> subs, boolean indexIsSorted, OrdinalMap map) throws IOException {<NEW_LINE>long cost = 0;<NEW_LINE>for (SortedDocValuesSub sub : subs) {<NEW_LINE>cost += sub.values.cost();<NEW_LINE>}<NEW_LINE>final long finalCost = cost;<NEW_LINE>final DocIDMerg...
).values.lookupOrd(segmentOrd);
1,559,084
private void ensureUniqueName(BroadcastConfiguration configuration) {<NEW_LINE>if (configuration.getName() == null || configuration.getName().isEmpty()) {<NEW_LINE>configuration.setName("New Configuration");<NEW_LINE>}<NEW_LINE>while (!isUniqueName(configuration.getName(), configuration)) {<NEW_LINE>String currentName ...
(UNIQUE_NAME_REGEX).matcher(currentName);
828,574
void drawCoil(Graphics g, int hs, Point p1, Point p2, double v1, double v2) {<NEW_LINE>double len = distance(p1, p2);<NEW_LINE>g.context.save();<NEW_LINE>g.context.setLineWidth(3.0);<NEW_LINE>g.context.transform(((double) (p2.x - p1.x)) / len, ((double) (p2.y - p1.y)) / len, -((double) (p2.y - p1.y)) / len, ((double) (...
, v2).getHexValue());
1,371,821
protected TableColumnDescriptor<VTMatch> createTableColumnDescriptor() {<NEW_LINE>TableColumnDescriptor<VTMatch> descriptor = new TableColumnDescriptor<>();<NEW_LINE>descriptor.addHiddenColumn(new SessionNumberTableColumn());<NEW_LINE>descriptor.addVisibleColumn(new StatusTableColumn(), 1, true);<NEW_LINE>descriptor.ad...
.addVisibleColumn(new AlgorithmTableColumn());
185,856
private TreeBuilder<ResourceMeta> configureConverterPlugin(TreeBuilder<ResourceMeta> builder, int index, Map<String, String> configProps) {<NEW_LINE>String pref1 = getConverterConfigPrefix() + SEP + index;<NEW_LINE>String pluginType = configProps.get(pref1 + SEP + TYPE);<NEW_LINE>String pathProp = pref1 + SEP + PATH;<N...
String selectorProp = pref1 + SEP + RESOURCE_SELECTOR;
734,555
protected Object doExecute(ExecutionEvent event) throws ExecutionException {<NEW_LINE>final GitRepository repo = getSelectedRepository();<NEW_LINE>if (repo == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String currentBranch = repo.currentBranch();<NEW_LINE>List<MenuDialogItem> listOfMaps <MASK><NEW_LINE>for (Stri...
= new ArrayList<MenuDialogItem>();
147,174
public Set<PotionMixData> load(Object input) {<NEW_LINE>List<ItemMapping> ingredients = new ArrayList<>();<NEW_LINE>ingredients.add(getNonNull("minecraft:nether_wart"));<NEW_LINE>ingredients.add(getNonNull("minecraft:redstone"));<NEW_LINE>ingredients.add(getNonNull("minecraft:glowstone_dust"));<NEW_LINE>ingredients.add...
inputs = new ArrayList<>();
1,088,729
private Map<String, Object> normalizeConfiguration(Map<String, Object> properties, ChannelTypeUID channelTypeUID, ChannelUID channelUID) {<NEW_LINE>if (properties == null || properties.isEmpty()) {<NEW_LINE>return properties;<NEW_LINE>}<NEW_LINE>ChannelType channelType = channelTypeRegistry.getChannelType(channelTypeUI...
getConfigDescription(channelType.getConfigDescriptionURI());
847,751
private ParameterDefinition[] parseParameters(Function function, Address address, String callFunctionName, String formatString, Map<String, List<DataType>> namesToParameters) {<NEW_LINE>Program functionProgram = function.getProgram();<NEW_LINE>FormatStringParser parser = getParser();<NEW_LINE>// DataTypes of arguments ...
parser.convertToFormatArgumentList(formatString, isOutputType);
1,620,203
private List<CephBackupStorageMonBase> prepareMons() {<NEW_LINE>final List<CephBackupStorageMonBase> mons = new ArrayList<CephBackupStorageMonBase>();<NEW_LINE>for (CephBackupStorageMonVO monvo : getSelf().getMons()) {<NEW_LINE>mons.add(new CephBackupStorageMonBase(monvo));<NEW_LINE>}<NEW_LINE>if (randomFactor != null)...
getSelf().getUuid());
1,057,026
public void findHydratedProjects(FindProjects request, StreamObserver<AdvancedQueryProjectsResponse> responseObserver) {<NEW_LINE>try {<NEW_LINE>// Get the user info from the Context<NEW_LINE>var userInfo = authService.getCurrentLoginUserInfo();<NEW_LINE>FindProjects.Response projectResponse;<NEW_LINE>try {<NEW_LINE>pr...
getHydratedProjects(projectResponse.getProjectsList());
1,063,111
private void handleAggregationChanged(boolean updateSecondary) {<NEW_LINE>if (updateSecondary) {<NEW_LINE>int sel = secondCombo.getSelectedIndex();<NEW_LINE>DefaultComboBoxModel model = (DefaultComboBoxModel) secondCombo.getModel();<NEW_LINE>while (model.getSize() > 1) model.removeElementAt(1);<NEW_LINE>if (!Aggregatio...
getItemCount() ? sel : 0);
1,204,631
final PutPartnerEventsResult executePutPartnerEvents(PutPartnerEventsRequest putPartnerEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putPartnerEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<P...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
788,412
protected void recordAttributes(SpanEventRecorder recorder, LoggingMessage loggingMessage) {<NEW_LINE>StringBuilder address = loggingMessage.getAddress();<NEW_LINE>if (address.length() > 0) {<NEW_LINE>recorder.recordAttribute(CxfPluginConstants.CXF_ADDRESS, address.toString());<NEW_LINE>}<NEW_LINE>StringBuilder respons...
CXF_RESPONSE_CODE, responseCode.toString());
448,262
public synchronized void watchGame(UUID gameId, GamePane gamePane) {<NEW_LINE>this.gameId = gameId;<NEW_LINE>this.gamePane = gamePane;<NEW_LINE>this.playerId = null;<NEW_LINE>MageFrame.addGame(gameId, this);<NEW_LINE>this.feedbackPanel.init(gameId);<NEW_LINE>this.feedbackPanel.clear();<NEW_LINE>this.btnConcede.setVisib...
this.btnStopWatching.setVisible(true);
1,019,455
public String convertToString(Object value) {<NEW_LINE>String result;<NEW_LINE>if (value == null) {<NEW_LINE>result = "NULL";<NEW_LINE>} else {<NEW_LINE>if (value instanceof Timestamp) {<NEW_LINE>result = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(value);<NEW_LINE>} else if (value instanceof Date) {<NEW_...
((byte[]) value);
156,599
private Object parseValue(GridField field, Object in) {<NEW_LINE>if (in == null)<NEW_LINE>return null;<NEW_LINE>int dt = field.getDisplayType();<NEW_LINE>try {<NEW_LINE>// Return Integer<NEW_LINE>if (dt == DisplayType.Integer || (DisplayType.isID(dt) && field.getColumnName().endsWith("_ID"))) {<NEW_LINE>if (in instance...
toString()).getTime();