idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
661,996
public final <A> Value<A> allocate(String name, A initA) {<NEW_LINE>StreamJunction<A> j = new StreamJunction<>((l, r) -> l);<NEW_LINE>StreamSink<A> s0 = new StreamSink<>();<NEW_LINE>Listener l = j.out.listenWeak(a -> {<NEW_LINE>new Thread(() -> {<NEW_LINE>try {<NEW_LINE>Thread.sleep(50);<NEW_LINE>} catch (InterruptedEx...
<A>(recvd, l);
435,820
public void save() throws java.io.IOException {<NEW_LINE>if (formEditor == null) {<NEW_LINE>// not saving form, only java<NEW_LINE>// don't need to be in event dispatch thread (#102986)<NEW_LINE>doSave(false);<NEW_LINE>} else if (EventQueue.isDispatchThread()) {<NEW_LINE>doSave(true);<NEW_LINE>} else {<NEW_LINE>try {<N...
Level.INFO, "", ex);
1,438,120
public UpdateTrackerResult updateTracker(UpdateTrackerRequest updateTrackerRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTrackerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NE...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
595,894
public long updateUserSettings(String userId, WFCMessage.ModifyUserSettingReq request, String clientId) {<NEW_LINE>HazelcastInstance hzInstance = m_Server.getHazelcastInstance();<NEW_LINE>MultiMap<String, WFCMessage.UserSettingEntry> userSettingMap = hzInstance.getMultiMap(USER_SETTING);<NEW_LINE>Collection<WFCMessage....
+ "|" + target + "|" + line;
62,763
private int createAcmeFile(WsLocationAdmin wslocation) {<NEW_LINE>acmeFile = wslocation.getServerWorkareaResource(acmeFileName).asFile();<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "Acme history filed prepped from workarea " + acmeFile.getAbsolutePath());<NEW_LINE>}<NEW_LINE>if (acmeFile.exists()) {<NEW_...
= new FileWriter(acmeFile, false);
1,775,606
private Example createExample(JsonNode node) {<NEW_LINE>if (node instanceof ObjectNode) {<NEW_LINE>ObjectExample obj = new ObjectExample();<NEW_LINE>ObjectNode on = (ObjectNode) node;<NEW_LINE>for (Iterator<Entry<String, JsonNode>> x = on.fields(); x.hasNext(); ) {<NEW_LINE>Entry<String, JsonNode> i = x.next();<NEW_LIN...
.add(createExample(childNode));
386,095
private void createStandardHeaderFooter() {<NEW_LINE>final MPrintTableFormat tf = m_format.getTableFormat();<NEW_LINE>// task 09359 get rid of logo. Commenting out so we have it in case we need it again<NEW_LINE>// Header: Logo<NEW_LINE>// {<NEW_LINE>// final I_AD_ClientInfo ci = Services.get(IClientDAO.class).retrieve...
0, true, MPrintFormatItem.FIELDALIGNMENTTYPE_Center);
585,707
public Void resourceShape(ResourceShape shape) {<NEW_LINE>serializeTraits(shape);<NEW_LINE>codeWriter.openBlock("resource $L {", shape.getId().getName());<NEW_LINE>if (!shape.getIdentifiers().isEmpty()) {<NEW_LINE>codeWriter.openBlock("identifiers: {");<NEW_LINE>shape.getIdentifiers().entrySet().stream().sorted(Map.Ent...
"resources", shape.getResources());
561,047
private Mono<Response<Void>> updatePasswordCredentialsWithResponseAsync(String objectId, String tenantId, PasswordCredentialsUpdateParameters parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is r...
tenantId, parameters, accept, context);
340,898
final ModifyLoadBalancerAttributesResult executeModifyLoadBalancerAttributes(ModifyLoadBalancerAttributesRequest modifyLoadBalancerAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyLoadBalancerAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
ModifyLoadBalancerAttributesResult>(new ModifyLoadBalancerAttributesResultStaxUnmarshaller());
326,436
private RuntimeSearchParam canonicalizeSearchParameterDstu3(org.hl7.fhir.dstu3.model.SearchParameter theNextSp) {<NEW_LINE>String name = theNextSp.getCode();<NEW_LINE>String description = theNextSp.getDescription();<NEW_LINE>String path = theNextSp.getExpression();<NEW_LINE>RestSearchParameterTypeEnum paramType = null;...
().getValue()));
203,298
public static void main(String[] args) {<NEW_LINE>boolean verbose = (args.length > 0 && args[0].equals("-v"));<NEW_LINE>try (ZContext ctx = new ZContext()) {<NEW_LINE>// Prepare server socket with predictable identity<NEW_LINE>String bindEndpoint = "tcp://*:5555";<NEW_LINE>String connectEndpoint = "tcp://localhost:5555...
ZFrame identity = request.pop();
727,108
protected void consumeReferenceExpressionTypeForm(boolean isPrimitive) {<NEW_LINE>// actually Name or Type form.<NEW_LINE>// ReferenceExpression ::= PrimitiveType Dims '::' NonWildTypeArgumentsopt IdentifierOrNew<NEW_LINE>// ReferenceExpression ::= Name Dimsopt '::' NonWildTypeArgumentsopt IdentifierOrNew<NEW_LINE>Refe...
.identifierStack[this.identifierPtr--];
1,063,214
public double updateWeightPlus(final double[] gradients, final double[] lastGradient, final int index) {<NEW_LINE>// multiply the current and previous gradient, and take the<NEW_LINE>// sign. We want to see if the gradient has changed its sign.<NEW_LINE>final int change = EncogMath.sign(gradients[index] * lastGradient[...
max(delta, RPROPConst.DELTA_MIN);
528,829
private void loadPreset() {<NEW_LINE>String presetName = getJobProps().get(GobblinConstants.GOBBLIN_PRESET_KEY);<NEW_LINE>if (presetName == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GobblinPresets preset = GobblinPresets.fromName(presetName);<NEW_LINE>Properties presetProperties = gobblinPresets.get(preset);<NEW_LIN...
" is not supported. Supported presets: " + gobblinPresets.keySet());
124,199
public long addLogListener(final List<Address> addresses, final List<List<Bytes32>> topics, final LogListener logListener) {<NEW_LINE>final List<org.hyperledger.besu.datatypes.Address> besuAddresses = addresses.stream().map(org.hyperledger.besu.datatypes.Address::fromPlugin<MASK><NEW_LINE>final List<List<LogTopic>> bes...
).collect(toUnmodifiableList());
679,855
public static LogResult postLog(@NonNull final Geocache cache, @NonNull final LogType logType, @NonNull final Calendar date, @NonNull final String log, final boolean addRecommendation) throws SuApiException {<NEW_LINE>final IConnector connector = ConnectorFactory.getConnector(cache.getGeocode());<NEW_LINE>if (!(connect...
final SuConnector gcsuConnector = (SuConnector) connector;
1,730,461
final SignOutUserResult executeSignOutUser(SignOutUserRequest signOutUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(signOutUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
794,913
private static VcfFuncotationFactory createVcfDataSource(final Path dataSourceFile, final Properties dataSourceProperties, final LinkedHashMap<String, String> annotationOverridesMap, final FeatureInput<? extends Feature> featureInput, final int minBasesForValidSegment) {<NEW_LINE>Utils.nonNull(dataSourceFile);<NEW_LINE...
name = dataSourceProperties.getProperty(CONFIG_FILE_FIELD_NAME_NAME);
49,641
protected Control createContents(Composite parent) {<NEW_LINE>final Composite composite = UIUtils.createComposite(parent, 1);<NEW_LINE>final DBPPreferenceStore preferences = GISViewerActivator.getDefault().getPreferences();<NEW_LINE>{<NEW_LINE>final Group group = UIUtils.createControlGroup(composite, GISMessages.pref_p...
.getIntegerVerifyListener(Locale.ENGLISH));
890,377
public NotificationChannel unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NotificationChannel notificationChannel = new NotificationChannel();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
JsonToken token = context.getCurrentToken();
514,773
private void processRoleRefs(PolicyConfiguration ejbPC, String beanName, Map<String, String> roleLinkMap, Set<String> allRoles) throws PolicyContextException {<NEW_LINE>if (roleLinkMap != null) {<NEW_LINE>for (Entry<String, String> entry : roleLinkMap.entrySet()) {<NEW_LINE>String refName = entry.getKey();<NEW_LINE>Str...
"addToRole(RefName) role : " + refLink + " permission : " + ejbRolePerm);
907,276
private static int[] cusum(double[] values, double threshold) {<NEW_LINE>// double threshold=1.0;<NEW_LINE>double drift = 0.0;<NEW_LINE>int size = values.length;<NEW_LINE>double[] csum_pos = new double[size];<NEW_LINE>double[] csum_neg = new double[size];<NEW_LINE>int[] change_points = new int[size];<NEW_LINE>int cp_id...
i - 1] - diff - drift;
947,828
public static void registerTornadoMathPlugins(final InvocationPlugins plugins) {<NEW_LINE>InvocationPlugins.Registration registration = new InvocationPlugins.Registration(plugins, TornadoMath.class);<NEW_LINE>registerFloatMath1Plugins(registration, float.class, JavaKind.Float);<NEW_LINE>registerTrigonometric1Plugins(re...
int.class, JavaKind.Int);
1,172,893
// Register late start callbacks with a policy executor. Verify that at most one can be registered,<NEW_LINE>// that the most recently registered replaces any previous ones, and that the late start callback<NEW_LINE>// can be unregistered by supplying null. Verify that the late start callback is notified when a<NEW_LIN...
, TimeUnit.MINUTES, lateBy3MinutesCallback));
196,071
private static void insertRecord(String deviceId, int minTime, int maxTime) throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>List<String> measurements = new ArrayList<>();<NEW_LINE>List<TSDataType> types = new ArrayList<>();<NEW_LINE>measurements.add("s2");<NEW_LINE>measurements.add("s4");<NEW_LI...
add(time * 10 + 6L);
1,795,801
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
930,645
final AdminDeleteUserResult executeAdminDeleteUser(AdminDeleteUserRequest adminDeleteUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminDeleteUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<AdminD...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,141,309
private void verifyResults(PrintWriter pw, JobExecution je, String testName) throws TestFailureException {<NEW_LINE>// Common stuff<NEW_LINE>JobOperator jobOp = BatchRuntime.getJobOperator();<NEW_LINE>long execId = je.getExecutionId();<NEW_LINE>// Tests<NEW_LINE>if (testName.equals("testNullPropOnJobExecution")) {<NEW_...
"Unexpected number of properties returned, expected 1 but found " + storedProps.size());
1,693,959
protected void initChannel(LocalChannel ch) throws Exception {<NEW_LINE>synchronized (suspensionLock) {<NEW_LINE>while (suspended) {<NEW_LINE>suspensionLock.wait();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>BookieSideConnectionPeerContextHandler contextHandler = new BookieSideConnectionPeerContextHandler();<NEW_LINE>ChannelPipeli...
, 4, 0, 4));
844,537
private void startSingleBackupTask(String taskToken, SingleBackupTaskConfig config) {<NEW_LINE>if (config.exportMode() && !supportsApkExport()) {<NEW_LINE>notifyBackupTaskStatusChanged(BackupTaskStatus.queued(taskToken, config));<NEW_LINE>notifyBackupTaskStatusChanged(BackupTaskStatus.inProgress(taskToken, config, 0, 1...
.queued(taskToken, config));
1,432,389
public AvailabilityOptionsStatus unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>AvailabilityOptionsStatus availabilityOptionsStatus = new AvailabilityOptionsStatus();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isSta...
().unmarshall(context));
1,761,537
private void removeVmfsDatastore(Command cmd, VmwareHypervisorHost hyperHost, String datastoreName, String storageIpAddress, int storagePortNumber, String iqn, List<Pair<ManagedObjectReference, String>> lstHosts) throws Exception {<NEW_LINE>VmwareContext context = hostService.getServiceContext(cmd);<NEW_LINE>unmountVmf...
lstTargets = new ArrayList<>();
1,539,298
public List<ThrustCurveMotor> findMotors(String digest, Motor.Type type, String manufacturer, String designation, double diameter, double length) {<NEW_LINE>ArrayList<ThrustCurveMotor> fullMatches = new ArrayList<ThrustCurveMotor>();<NEW_LINE>ArrayList<ThrustCurveMotor> digestMatches <MASK><NEW_LINE>ArrayList<ThrustCur...
= new ArrayList<ThrustCurveMotor>();
1,413,961
public TemplateModel exec(List args) throws TemplateModelException {<NEW_LINE>if (args.size() == 1) {<NEW_LINE>String messageKey = ((SimpleScalar) args.get(0)).getAsString();<NEW_LINE>String messageValue = messages.get(messageKey, language);<NEW_LINE>return new SimpleScalar(messageValue);<NEW_LINE>} else if (args.size(...
) o).getAsString());
285,105
private static Map<TypeVariable, Type> buildGenericInfo(Class<?> clazz) {<NEW_LINE>Class<?> childClass = clazz;<NEW_LINE>Class<?> currentClass = clazz.getSuperclass();<NEW_LINE>if (currentClass == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<TypeVariable, Type> typeVarMap = null;<NEW_LINE>// analyse the whole ...
i], childGenericParentActualTypeArgs[i]);
737,493
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportCollection");<NEW_LINE>builder.expression(fields[0], "strvals.orderBy()");<NEW_LINE>builder.expression(fields[1], "strvals.orderByDesc()");<NEW_LINE>builder.st...
, "E4", "E2", "E1"));
731,910
private void processPlayerList(ByteBufDataInput in) {<NEW_LINE>ByteBuf buf = Unpooled.buffer();<NEW_LINE>ByteBufDataOutput out = new ByteBufDataOutput(buf);<NEW_LINE>String target = in.readUTF();<NEW_LINE>if (target.equals("ALL")) {<NEW_LINE>out.writeUTF("PlayerList");<NEW_LINE>out.writeUTF("ALL");<NEW_LINE>StringJoine...
StringJoiner joiner = new StringJoiner(", ");
152,506
protected void saveEditorValue(Control control, int index, TableItem item) {<NEW_LINE>SQLQueryParameter param = (SQLQueryParameter) item.getData();<NEW_LINE><MASK><NEW_LINE>item.setText(2, newValue);<NEW_LINE>param.setValue(newValue);<NEW_LINE>param.setVariableSet(!CommonUtils.isEmpty(newValue));<NEW_LINE>if (param.isN...
String newValue = editor.getText();
1,679,363
private ActionToolbar createTreeToolbarPanel() {<NEW_LINE>final CommonActionsManager actionManager = CommonActionsManager.getInstance();<NEW_LINE>DefaultActionGroup actions = new DefaultActionGroup();<NEW_LINE>actions.add(new InspectionFilterAction(mySelectedProfile, myInspectionsFilter, myProjectProfileManager.getProj...
.createExpandAllAction(myTreeExpander, myTreeTable));
646,006
public AccountOut lookupCredentials(AccountIn credentials) {<NEW_LINE>AccountOut auth = null;<NEW_LINE>// asynch<NEW_LINE>Boolean success = lookupAccount(credentials);<NEW_LINE>if (success) {<NEW_LINE>// get authentication token from lookupAccountPoll<NEW_LINE>Boolean loop = true;<NEW_LINE>while (loop) {<NEW_LINE>loop ...
Logging.Category.CLIENT, "ClientInterfaceImplementation.lookupCredentials: returned null.");
52,225
private void applyOverlayMonochrome(int gg0000, WritableRaster raster, int frameIndex, ImageReadParam param, byte[] ovlyData) {<NEW_LINE>Attributes ovlyAttrs = metadata.getAttributes();<NEW_LINE>int[] pixelValue = new int[] { 0xff };<NEW_LINE>if (param instanceof DicomImageReadParam) {<NEW_LINE>DicomImageReadParam dPar...
.getOverlayGrayscaleValue() >> 8 };
1,419,372
// submit the map/reduce job.<NEW_LINE>public int run(final String[] args) throws Exception {<NEW_LINE>if (args.length != 4) {<NEW_LINE>System.out.println("args.length = " + args.length);<NEW_LINE>int i;<NEW_LINE>for (i = 0; i < args.length; i++) {<NEW_LINE>System.out.println("args[" + i + "] = " + args[i]);<NEW_LINE>}...
.parseInt(args[2]);
1,483,806
protected Map<String, String> toMetricTags() {<NEW_LINE>Map<String, String> tags = super.toMetricTags();<NEW_LINE>addTag(tags, CLUSTER, cluster.getClusterName());<NEW_LINE>addTag(tags, SHARD, shard);<NEW_LINE>addTag(tags, ROLE, role);<NEW_LINE>addTag(tags, READ_STRATEGY, readStrategy);<NEW_LINE>addTag(tags, DB_KEY, Str...
LocalizationConfig config = cluster.getLocalizationConfig();
462,057
private Document LoadProjectFileFromController() throws IhcExecption {<NEW_LINE>try {<NEW_LINE>WSProjectInfo projectInfo = getProjectInfo();<NEW_LINE><MASK><NEW_LINE>int segmentationSize = controllerService.getProjectSegmentationSize();<NEW_LINE>logger.debug("Number of segments: {}", numberOfSegments);<NEW_LINE>logger....
int numberOfSegments = controllerService.getProjectNumberOfSegments();
1,853,480
public static void main(String[] args) {<NEW_LINE>// grep -C1 'static boolean . = false;' * | grep 'static final Logger . = LogManager\.getLogger();' # od<NEW_LINE>od.c();<NEW_LINE>// grep '"textures/atlas/blocks.png"' * # cty<NEW_LINE>// grep 'private final cty b;' * # cxi<NEW_LINE>cxi manager = new cxi(new cty("textu...
atp.d.b(o);
1,116,192
void onNeighboursReceived(final DiscoveryPeer peer, final List<DiscoveryPeer> peers) {<NEW_LINE>final MetadataPeer metadataPeer = oneTrueMap.get(peer.getId());<NEW_LINE>if (metadataPeer == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.debug(<MASK><NEW_LINE>for (final DiscoveryPeer receivedDiscoPeer : peers) {<NEW_LI...
"Received neighbours packet with {} neighbours", peers.size());
752,098
public AlarmConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AlarmConfiguration alarmConfiguration = new AlarmConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t...
int originalDepth = context.getCurrentDepth();
220,233
private Route postAgentClustersRoute() {<NEW_LINE>logger.info("POST /api/v1/agentClusters called");<NEW_LINE>return entity(Jackson.unmarshaller(new TypeReference<List<String>>() {<NEW_LINE>}), activeClustersList -> {<NEW_LINE>logger.info("POST {} called {}", API_V1_AGENT_CLUSTER, activeClustersList);<NEW_LINE>try {<NEW...
complete(StatusCodes.OK, "");
1,477,347
public ImmutableList<RateAccrualPeriod> createAccrualPeriods(Schedule accrualSchedule, Schedule paymentSchedule, ReferenceData refData) {<NEW_LINE>// avoid null stub definitions if there are stubs<NEW_LINE>FixedRateStubCalculation initialStub = firstNonNull(this.initialStub, FixedRateStubCalculation.NONE);<NEW_LINE>Fix...
(resolvedRates.get(i));
637,789
public String makeHtml(FitNesseContext context, WikiPage page) {<NEW_LINE>PageData pageData = page.getData();<NEW_LINE>HtmlPage html = context.pageFactory.newPage();<NEW_LINE>WikiPagePath fullPath = page.getFullPath();<NEW_LINE>String fullPathName = PathParser.render(fullPath);<NEW_LINE>PageTitle pt = new PageTitle(ful...
.get(PageData.PropertyHELP));
626,622
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String workOrWorkCompleted) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>String job = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business busi...
job().findWithWorkOrWorkCompleted(workOrWorkCompleted);
1,466,841
public static void removePolicy(PermissionTicket ticket, StoreFactory storeFactory) {<NEW_LINE>Policy policy = ticket.getPolicy();<NEW_LINE>if (policy != null) {<NEW_LINE>Map<PermissionTicket.FilterOption, String> filter = new EnumMap<>(PermissionTicket.FilterOption.class);<NEW_LINE>filter.put(PermissionTicket.FilterOp...
), filter, null, null);
110,418
public static List<MHRAttribute> findByConceptValueAndPartnerId(Properties ctx, String conceptValue, Integer partnerId, String referenceNo, String description, String trxName) {<NEW_LINE>List<MHRAttribute> attributes = new ArrayList<MHRAttribute>();<NEW_LINE>if (partnerId == null)<NEW_LINE>return attributes;<NEW_LINE>S...
.COLUMNNAME_Description).append("=?");
1,154,519
public void askConfirmationMoveToRubbish(final ArrayList<Long> handleList) {<NEW_LINE>logDebug("askConfirmationMoveToRubbish");<NEW_LINE>DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(DialogInterface dialog, int whi...
(R.string.confirmation_move_to_rubbish_plural));
996,329
static MapStoreContext create(MapContainer mapContainer) {<NEW_LINE>final BasicMapStoreContext context = new BasicMapStoreContext();<NEW_LINE>final String mapName = mapContainer.getName();<NEW_LINE>final MapServiceContext mapServiceContext = mapContainer.getMapServiceContext();<NEW_LINE>final NodeEngine nodeEngine = ma...
= new MapStoreWrapper(mapName, store);
1,044,048
public void marshall(CaseDetails caseDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (caseDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(caseDetails.getCaseId(), CASEID_BINDING);<NEW_LINE>...
caseDetails.getCcEmailAddresses(), CCEMAILADDRESSES_BINDING);
1,811,784
public static void updateQueue(String projectId, String locationId, String queueId) throws Exception {<NEW_LINE>try (CloudTasksClient client = CloudTasksClient.create()) {<NEW_LINE>// TODO(developer): Uncomment these lines and replace with your values.<NEW_LINE>// String projectId = "your-project-id";<NEW_LINE>// Strin...
setQueue(queueBlue).build();
734,337
public void deletePort(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, String portType, DeleteSemantic deleteSemantic) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException, FunctionNotSupportedException, EntityNotDeletedException {<NEW_LIN...
guid, qualifiedName, PORT_TYPE_NAME, methodName);
1,626,337
protected String doInBackground(Void[] params) {<NEW_LINE>String items = "";<NEW_LINE>long fileLength = file.length(context);<NEW_LINE>if (file.isDirectory(context)) {<NEW_LINE>final AtomicInteger x = new AtomicInteger(0);<NEW_LINE>file.forEachChildrenFile(context, false, <MASK><NEW_LINE>final int folderLength = x.intV...
file -> x.incrementAndGet());
1,482,338
protected INDArray preOutput(boolean training, boolean forBackprop, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>assertInputSet(false);<NEW_LINE>applyDropOutIfNecessary(training, null);<NEW_LINE>if (input.rank() != 4) {<NEW_LINE>throw new DL4JInvalidInputException("Got rank " + input.rank() + " array as input to space to...
+ padding[1][1];
714,197
public CompletableFuture<List<Long>> mergeTxnSegments(final String scope, final String stream, final long targetSegmentId, final long sourceSegmentId, final List<UUID> txId, final String delegationToken, final long clientRequestId) {<NEW_LINE>Preconditions.checkArgument(getSegmentNumber(targetSegmentId) == getSegmentNu...
getSegmentUri(scope, stream, sourceSegmentId);
391,768
public List<String> load(Path dataPath) {<NEW_LINE>List<String> trainingData = new ArrayList<>();<NEW_LINE>try (Stream<String> stream = Files.lines(dataPath)) {<NEW_LINE>List<String> instance = new ArrayList<>();<NEW_LINE>ListIterator<String> iterator = stream.collect(Collectors.toList()).listIterator();<NEW_LINE>while...
.join("\n", instance));
1,848,610
protected boolean isTokenProtected(List<WSSecurityEngineResult> results, List<WSSecurityEngineResult> signedResults) {<NEW_LINE>for (WSSecurityEngineResult result : signedResults) {<NEW_LINE>// Get the Token result that was used for the signature<NEW_LINE>WSSecurityEngineResult tokenResult = findCorrespondingToken(resu...
Element referenceElement = dataRef.getProtectedElement();
1,640,278
public static DataSet<Row> mapDataSetWithIdMapping(DataSet<Row> original, DataSet<Tuple2<String, Long>> dict, int[] colIds) {<NEW_LINE>DataSet<Row> tmp = original;<NEW_LINE>for (int i = 0; i < colIds.length; i++) {<NEW_LINE>int colId = colIds[i];<NEW_LINE>tmp = tmp.coGroup(dict).where(new KeySelector<Row, String>() {<N...
).name("cogroup at " + colId);
704,595
final DeleteGroupResult executeDeleteGroup(DeleteGroupRequest deleteGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
(super.beforeMarshalling(deleteGroupRequest));
664,633
public void init(DataSource dataSource) throws Exception {<NEW_LINE>Assert.notNull(dataSource, "data source must be specified");<NEW_LINE>Assert.hasLength(selectClause, "selectClause must be specified");<NEW_LINE>Assert.hasLength(fromClause, "fromClause must be specified");<NEW_LINE>Assert.notEmpty(sortKeys, "sortKey m...
("SELECT ").append(selectClause);
1,220,154
public void marshall(AwsEc2SecurityGroupIpPermission awsEc2SecurityGroupIpPermission, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEc2SecurityGroupIpPermission == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller....
awsEc2SecurityGroupIpPermission.getPrefixListIds(), PREFIXLISTIDS_BINDING);
1,802,775
final DescribeAccountOverviewResult executeDescribeAccountOverview(DescribeAccountOverviewRequest describeAccountOverviewRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAccountOverviewRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.SERVICE_ID, "DevOps Guru");
691,062
public void onQuotedTweet(User source, User target, Status status) {<NEW_LINE>if (!thisInstanceOn || isUserBlocked(source.getId())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!source.getScreenName().equals(settings.myScreenName) && target.getScreenName().equals(settings.myScreenName)) {<NEW_LINE>AppSettings settings = ...
"new_quotes", newQuotes).commit();
760,702
public FormBuilder addLabeledComponent(@Nullable JComponent label, @Nonnull JComponent component, int topInset, boolean labelOnTop) {<NEW_LINE>GridBagConstraints c = new GridBagConstraints();<NEW_LINE>topInset = myLineCount > 0 ? topInset : 0;<NEW_LINE>if (myVertical || labelOnTop || label == null) {<NEW_LINE>c.gridwid...
topInset, myIndent, 0, myHorizontalGap);
241,922
final StopTriggerResult executeStopTrigger(StopTriggerRequest stopTriggerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopTriggerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new StopTriggerResultJsonUnmarshaller());
133,554
public synchronized void dispose() {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>log.debug("Shutdown Core...");<NEW_LINE>DesktopPlatform.setClosing(true);<NEW_LINE>DBPApplication application = getApplication();<NEW_LINE>if (application instanceof DBPApplicationController) {<NEW_LINE>// Shutdown in he...
.getInstance().dispose();
702,412
private AppendMessageResult doAppendData(final LogSegment segment, final ByteBuffer data) {<NEW_LINE>int currentPos = segment.getWrotePosition();<NEW_LINE>final int freeSize = segment.getFileSize() - currentPos;<NEW_LINE>int remaining = data.remaining();<NEW_LINE>ByteBuf to = ByteBufAllocator.DEFAULT.ioBuffer(Math.min(...
) + segment.getWrotePosition());
514,968
public boolean entersBattlefield(Ability source, Game game, Zone fromZone, boolean fireEvent) {<NEW_LINE>controlledFromStartOfControllerTurn = false;<NEW_LINE>if (this.isFaceDown(game)) {<NEW_LINE>// remove some attributes here, because first apply effects comes later otherwise abilities (e.g. color related) will unint...
.getManaCostsToPay().getX();
1,167,479
private static void initWindows2AndroidMap() {<NEW_LINE>windowsToAndroidEventMap.put(0x08, KeyEvent.KEYCODE_DEL);<NEW_LINE>windowsToAndroidEventMap.put(0x09, KeyEvent.KEYCODE_TAB);<NEW_LINE>windowsToAndroidEventMap.put(0x0C, KeyEvent.KEYCODE_CLEAR);<NEW_LINE>windowsToAndroidEventMap.put(0x0D, KeyEvent.KEYCODE_ENTER);<N...
put(0xAF, KeyEvent.KEYCODE_VOLUME_UP);
165,807
public void error(Context ctx, Throwable throwable) throws Exception {<NEW_LINE>LOGGER.error("exception thrown for request to " + ctx.getRequest().getRawUri(), throwable);<NEW_LINE>ctx.getResponse().status(500);<NEW_LINE>ctx.byContent(s -> s.plainText(() -> ctx.render(Throwables.getStackTraceAsString(throwable) + "\n\n...
stack(w, null, throwable);
594,430
public ListWebsiteAuthorizationProvidersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListWebsiteAuthorizationProvidersResult listWebsiteAuthorizationProvidersResult = new ListWebsiteAuthorizationProvidersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String ...
class).unmarshall(context));
858,662
public void analyze() {<NEW_LINE>AnalysisScope scope = myForwardScope;<NEW_LINE>final DependenciesBuilder builder = new ForwardDependenciesBuilder(getProject(), scope, getScopeOfInterest());<NEW_LINE>builder.setTotalFileCount(myTotalFileCount);<NEW_LINE>builder.analyze();<NEW_LINE><MASK><NEW_LINE>final PsiManager psiMa...
subtractScope(builder, getScope());
619,642
public <R> R aggregate(final R init, final EditorAggregator<R> aggregator) {<NEW_LINE>final AtomicReference<R> ref = new AtomicReference<>(init);<NEW_LINE>when(new EditorVisitor<Boolean>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Boolean isShape(EditorShape object) {<NEW_LINE>ref.set(aggregator.addShape(ref.get()...
.get(), string));
693,512
private void onAddClick() {<NEW_LINE>getPanel();<NEW_LINE>LabelsPanel labelsPanel = new LabelsPanel();<NEW_LINE>LabelVariable[] variables = Git.getInstance()<MASK><NEW_LINE>labelsPanel.labelsList.setListData(variables);<NEW_LINE>String title = Bundle.GitOptionsPanel_labelVariables_title();<NEW_LINE>String acsd = Bundle...
.getVCSAnnotator().getProjectVariables();
760,189
public void enqueue(SerialMessage serialMessage) {<NEW_LINE>// Sanity check!<NEW_LINE>if (serialMessage == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// First try and get the node<NEW_LINE>// If we're sending to a node, then this obviously isn't to the controller, and we should<NEW_LINE>// queue anything to a battery...
this.sendQueue.size());
1,780,202
public Cursor<byte[]> scan(long cursorId, ScanOptions options) {<NEW_LINE>return new ScanCursor<byte[]>(cursorId, options) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected ScanIteration<byte[]> doScan(long cursorId, ScanOptions options) {<NEW_LINE>if (isQueueing() || isPipelined()) {<NEW_LINE>throw new UnsupportedOper...
params = JedisConverters.toScanParams(options);
868,911
private <T> T withFollowingRedirect(WebTarget initialWebTarget, RequestWithFollowingRedirect<T> request) {<NEW_LINE>WebApplicationException firstRedirectException = null;<NEW_LINE>WebTarget webTarget = initialWebTarget;<NEW_LINE>Optional<Response> lastResponse = Optional.absent();<NEW_LINE>for (int i = 0; i < MAX_REDIR...
(response.getLocation()));
924,615
private EntityDef addSecurityGroupEntity() {<NEW_LINE>final String guid = "042d9b5c-677e-477b-811f-1c39bf716759";<NEW_LINE>final String name = "SecurityGroup";<NEW_LINE>final String description = "A collection of users that should be given the same security privileges.";<NEW_LINE>final String descriptionGUID = null;<NE...
(superTypeName), description, descriptionGUID);
1,405,013
public void submit(Class<? extends Runnable> actionClass, Action<? super org.gradle.workers.WorkerConfiguration> configAction) {<NEW_LINE>DeprecationLogger.deprecateMethod(WorkerExecutor.class, "submit()").replaceWith("noIsolation(), classLoaderIsolation() or processIsolation()").willBeRemovedInGradle8().withUserManual...
DefaultWorkerConfiguration configuration = new DefaultWorkerConfiguration(forkOptionsFactory);
1,013,062
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>FilterPermanent filter = new FilterPermanent("nonenchantment permanents you don't control");<NEW_LINE>filter.add(Predicates.not(CardType.ENCHANTMENT.getPre...
4, 4, filter, true);
835,314
public static GetPatentPlanInfoListResponse unmarshall(GetPatentPlanInfoListResponse getPatentPlanInfoListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPatentPlanInfoListResponse.setRequestId(_ctx.stringValue("GetPatentPlanInfoListResponse.RequestId"));<NEW_LINE>getPatentPlanInfoListResponse.setPageNum(_ctx.integer...
("GetPatentPlanInfoListResponse.Data[" + i + "].Owner"));
805,943
private Mono<Response<RedisForceRebootResponseInner>> forceRebootWithResponseAsync(String resourceGroupName, String name, RedisRebootParameters parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is...
), parameters, accept, context);
1,674,099
private InitiateAuthRequest initiateCustomAuthRequest(final Map<String, String> clientMetadata, final AuthenticationDetails authenticationDetails, final AuthenticationHelper authenticationHelper) {<NEW_LINE>final InitiateAuthRequest authRequest = new InitiateAuthRequest();<NEW_LINE>authRequest.setAuthFlow(CognitoServic...
), attribute.getValue());
562,602
public static EnvironmentVariablesData readExternal(@Nonnull Element element) {<NEW_LINE>Element <MASK><NEW_LINE>if (envsElement == null) {<NEW_LINE>return DEFAULT;<NEW_LINE>}<NEW_LINE>Map<String, String> envs = Collections.emptyMap();<NEW_LINE>String passParentEnvsStr = envsElement.getAttributeValue(PASS_PARENT_ENVS);...
envsElement = element.getChild(ENVS);
1,403,858
public final Reader reader() throws IOException {<NEW_LINE>try {<NEW_LINE>if (string != null)<NEW_LINE>return new StringReader(string);<NEW_LINE>else if (bytes != null)<NEW_LINE>if (length > -1)<NEW_LINE>return inputStreamReader(new ByteArrayInputStream(bytes, 0, length));<NEW_LINE>else<NEW_LINE>return inputStreamReade...
e.getMessage(), e);
509,984
public void render(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>if (tabGuiOtf.isHidden())<NEW_LINE>return;<NEW_LINE>ClickGui gui = WurstClient.INSTANCE.getGui();<NEW_LINE>int txtColor = gui.getTxtColor();<NEW_LINE>GL11.glDisable(GL11.GL_CULL_FACE);<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlend...
GL11.glEnable(GL11.GL_CULL_FACE);
1,754,196
protected void initHistoricVariableUpdateEvt(HistoricVariableUpdateEventEntity evt, VariableInstanceEntity variableInstance, HistoryEventType eventType) {<NEW_LINE>// init properties<NEW_LINE>evt.setEventType(eventType.getEventName());<NEW_LINE>evt.setTimestamp(ClockUtil.getCurrentTime());<NEW_LINE>evt.setVariableInsta...
setRootProcessInstanceId(execution.getRootProcessInstanceId());
1,336,705
public CopyResult call() throws Exception {<NEW_LINE>CompleteMultipartUploadResult res;<NEW_LINE>try {<NEW_LINE>CompleteMultipartUploadRequest req = new CompleteMultipartUploadRequest(origReq.getDestinationBucketName(), origReq.getDestinationKey(), uploadId, collectPartETags()).withRequesterPays(origReq.isRequesterPays...
withRequestCredentialsProvider(origReq.getRequestCredentialsProvider());
19,954
private Map propertiesToMap(Check check) {<NEW_LINE>Map map = new HashMap();<NEW_LINE>map.put("_id", check.getId());<NEW_LINE>map.put("name", check.getName());<NEW_LINE>map.put("description", check.getDescription());<NEW_LINE>map.put("target", check.getTarget());<NEW_LINE>map.put("from", check.getFrom());<NEW_LINE>map....
"until", check.getUntil());
941,342
void updateInstanceStatesForNewConsumingSegment(Map<String, Map<String, String>> instanceStatesMap, @Nullable String committingSegmentName, @Nullable String newSegmentName, SegmentAssignment segmentAssignment, Map<InstancePartitionsType, InstancePartitions> instancePartitionsMap) {<NEW_LINE>if (committingSegmentName !=...
get(committingSegmentName).keySet();
1,081,163
private ControlSilence createSilenceMessage(long tick, long completedPrefix, int priority, Reliability reliability, SIBUuid12 stream) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createSilenceMessage", new Object[] { new Long(tick), new...
SibTr.exception(tc, e);
504,885
public void marshall(Device device, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (device == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(device.getDeviceArn(), DEVICEARN_BINDING);<NEW_LINE>protocolMarsha...
device.getDeviceStatus(), DEVICESTATUS_BINDING);
1,477,670
public Composite createControl(Composite parent, DashboardResources resources) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>GridLayoutFactory.fillDefaults().numColumns(1).margins(5, 5).applyTo(container);<NEW_LINE>container.setBackground(parent.getBackground());<NEW_LINE>title = new Label(...
get(index).toString();