idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,660,750
private boolean authenticationWasSuccessful(final HttpServletRequest request, final HttpServletResponse response) throws IOException {<NEW_LINE>final String origin = URIUtil.getName(String.valueOf(request.getRequestURL()));<NEW_LINE>final String code = request.getParameter("code");<NEW_LINE>final String idToken = reque...
authentication = externalOAuthAuthenticationManager.authenticate(codeToken);
732,324
public boolean cloneVeeamJob(final Job parentJob, final String clonedJobName) {<NEW_LINE>LOG.debug("Trying to clone veeam job: " + parentJob.getUid() + " with backup uuid: " + clonedJobName);<NEW_LINE>try {<NEW_LINE>final Ref repositoryRef = listBackupRepository(parentJob.getBackupServerId(), parentJob.getName());<NEW_...
JobCloneSpec cloneSpec = new JobCloneSpec(cloneInfo);
1,739,281
public static void logCert(@NonNull X509Certificate x509Certificate, CharSequence charSequence) throws CertificateEncodingException {<NEW_LINE>int bitLength;<NEW_LINE>Principal subjectDN = x509Certificate.getSubjectDN();<NEW_LINE>Log.i(TAG, charSequence + " - Unique distinguished name: " + subjectDN);<NEW_LINE>logEncod...
.getModulus().bitLength();
1,841,051
// TODO always validate on construction, then make this method private<NEW_LINE>public Candidate validateNonStockCandidate() {<NEW_LINE>switch(type) {<NEW_LINE>case DEMAND:<NEW_LINE>case STOCK_UP:<NEW_LINE>Check.errorIf(businessCaseDetail == null, "If type={}, then the given businessCaseDetail may not be null; this={}"...
"The given paramters businessCase and businessCaseDetail need to be both null or both not-null; businessCase={}; businessCaseDetail={}; this={}", businessCase, businessCaseDetail, this);
1,165,658
private static void transcodePicture(ByteBuffer inBuf, ByteBuffer outBuf, FrameHeader fh) {<NEW_LINE>PictureHeader ph = ProresDecoder.readPictureHeader(inBuf);<NEW_LINE>ProresEncoder.writePictureHeader(ph.log2SliceMbWidth, ph.sliceSizes.length, outBuf);<NEW_LINE>ByteBuffer fork = outBuf.duplicate();<NEW_LINE>outBuf.pos...
int sliceMbCount = 1 << ph.log2SliceMbWidth;
1,569,144
public static int deserializeInt(final JsonReader reader) throws IOException {<NEW_LINE>if (reader.last() == '"') {<NEW_LINE>final int position = reader.getCurrentIndex();<NEW_LINE>final char[] buf = reader.readSimpleQuote();<NEW_LINE>try {<NEW_LINE>return parseNumberGeneric(buf, reader.getCurrentIndex() - position - 1...
reader, true).intValueExact();
398,031
public void processBindingConfiguration(String context, Item item, String bindingConfig) throws BindingConfigParseException {<NEW_LINE>String[] configParts = bindingConfig.trim().split(":");<NEW_LINE>if (configParts.length != 2) {<NEW_LINE>throw new BindingConfigParseException("Omnilink configuration must contain of tw...
, config.getNumber() });
1,783,718
public void writeAdditionalFiles(GoSettings settings, Model model, SymbolProvider symbolProvider, GoDelegator goDelegator) {<NEW_LINE>ServiceTrait serviceTrait = settings.getService(model).expectTrait(ServiceTrait.class);<NEW_LINE>String serviceId = serviceTrait.getSdkId().replace("-", "").replace(" ", "").toLowerCase(...
("goModuleVersion").build());
133,327
private void readFile() throws IOException {<NEW_LINE>// clear all data first, if file is gone so are all creds<NEW_LINE>credentials.clear();<NEW_LINE>tags.clear();<NEW_LINE>if (!credFile.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStre...
val.username = s2[0];
500,533
public void startup() throws Exception {<NEW_LINE>super.startup();<NEW_LINE>// TODO: pronunciation model tree and feature definition should be voice-specific<NEW_LINE>// get featureDefinition used for trees - just to tell the tree that the<NEW_LINE>// features are discrete<NEW_LINE>String fdFilename = null;<NEW_LINE>if...
(getLocale()) + ".pronunciation.featuredefinition");
1,081,549
public static void main(String[] args) {<NEW_LINE>String calibDir = UtilIO.pathExample("calibration/mono/Sony_DSC-HX5V_Chess/");<NEW_LINE>String imageDir = UtilIO.pathExample("structure/");<NEW_LINE>// load calibration parameters from the previously calibrated camera<NEW_LINE>CameraPinholeBrown param = CalibrationIO.lo...
orig, distortedImg, allInside, fullView);
731,296
public boolean result(final Object iRecord) {<NEW_LINE>final ONetworkProtocolBinary protocol = ((ONetworkProtocolBinary) connection.getProtocol());<NEW_LINE>if (empty.compareAndSet(true, false))<NEW_LINE>try {<NEW_LINE>protocol.channel.writeByte(OChannelBinaryProtocol.RESPONSE_STATUS_OK);<NEW_LINE>protocol.channel.writ...
error(this, "Cannot write against channel", e);
1,549,243
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serviceName, String serviceRegistryName, 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 this.client.getSubscriptionId() is required and cannot be null."));
1,828,763
private void createDefaultTreeActions() {<NEW_LINE>final EditableTreeModel model = (EditableTreeModel) myTree.getModel();<NEW_LINE>myAddAction = button -> {<NEW_LINE>final TreePath path = myTree.getSelectionPath();<NEW_LINE>final DefaultMutableTreeNode selected = path == null ? (DefaultMutableTreeNode) myTree.getModel(...
), parent.getChildCount());
685,081
private static void processTestCase(GeneralTestEventsProcessor processor, BlazeTestEventsHandler eventsHandler, Label label, @Nullable Kind kind, TestSuite parent, TestCase test) {<NEW_LINE>if (test.name == null || !wasRun(test) || isCancelled(test)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String displayName = eventsHan...
, test.sysOut, true));
1,714,182
public static CreateNatGatewayResponse unmarshall(CreateNatGatewayResponse createNatGatewayResponse, UnmarshallerContext _ctx) {<NEW_LINE>createNatGatewayResponse.setRequestId(_ctx.stringValue("CreateNatGatewayResponse.RequestId"));<NEW_LINE>createNatGatewayResponse.setNatGatewayId<MASK><NEW_LINE>List<String> forwardTa...
(_ctx.stringValue("CreateNatGatewayResponse.NatGatewayId"));
939,728
public void checkForHeaderPost(View view) {<NEW_LINE>ANRequest.PostRequestBuilder postRequestBuilder = AndroidNetworking.post(ApiEndPoint.BASE_URL + ApiEndPoint.CHECK_FOR_HEADER);<NEW_LINE>postRequestBuilder.addHeaders("token", "1234");<NEW_LINE>ANRequest anRequest = postRequestBuilder.setTag(this).setPriority(Priority...
d(TAG, " bytesSent : " + bytesSent);
1,318,581
private static int parseType(byte[] buf, int pp, int pt) {<NEW_LINE>int p = pp + pt;<NEW_LINE>int chunkType = readLe16(buf, p);<NEW_LINE>int headerSize = readLe16(buf, p + 2);<NEW_LINE>int chunkSize = readLe32(buf, p + 4);<NEW_LINE>if (chunkType != RES_TABLE_TYPE_TYPE) {<NEW_LINE>throw new IllegalArgumentException("Exc...
+ Integer.toHexString(chunkType));
1,463,976
protected void performOperation(final ShardIterator shardIt, final ShardRouting shard, final int shardIndex) {<NEW_LINE>if (shard == null) {<NEW_LINE>// no more active shards... (we should not really get here, just safety)<NEW_LINE>onOperation(null, shardIt, shardIndex, new NoShardAvailableActionException(shardIt.shard...
get(shard.currentNodeId());
286,441
public void marshall(Delegation delegation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (delegation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(delegation.getId(), ID_BINDING);<NEW_LINE>protocolMars...
delegation.getRoleArn(), ROLEARN_BINDING);
1,670,353
private org.apache.http.cookie.Cookie convert(Cookie in) {<NEW_LINE>BasicClientCookie out = new BasicClientCookie(in.getName(), in.getValue());<NEW_LINE>String domainStr = null;<NEW_LINE>if (StringUtils.isEmpty(in.getDomain())) {<NEW_LINE>String urlStr = context.item().engine.get().getLocation();<NEW_LINE>try {<NEW_LIN...
in.getDomain() : domainStr);
41,718
private static Bitmap fetchBitmap(String url) throws IOException {<NEW_LINE>OkHttpClient client = ServiceFactory.getImageHttpClient();<NEW_LINE>okhttp3.Request request = new okhttp3.Request.Builder().url(url).build();<NEW_LINE>byte[] data;<NEW_LINE>try (okhttp3.Response response = client.newCall(request).execute()) {<N...
0, data.length, options);
483,111
public static // programming given the insertionCost, deletionCost and substitutionCost, O(nm)<NEW_LINE>int micahEditDistance(String a, String b, int insertionCost, int deletionCost, int substitutionCost) {<NEW_LINE>final int AL = a.length(), BL = b.length();<NEW_LINE>int[][] arr = new int[AL + 1][BL + 1];<NEW_LINE>for...
- 1) ? 0 : substitutionCost);
85,068
public EntityRecognizerEvaluationMetrics unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE><MASK><NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>EntityRecognizerEvaluationMetrics entityRecognizerEvaluationMetrics = new EntityRecognizerE...
AwsJsonReader reader = context.getReader();
945,817
protected void subscribeActual(Subscriber<? super T> s) {<NEW_LINE>Publisher<MASK><NEW_LINE>int n;<NEW_LINE>if (array == null) {<NEW_LINE>array = new Publisher[8];<NEW_LINE>n = 0;<NEW_LINE>try {<NEW_LINE>for (Publisher<T> p : sourcesIterable) {<NEW_LINE>if (n == array.length) {<NEW_LINE>array = Arrays.copyOf(array, n <...
<T>[] array = sources;
1,412,349
final PutIntegrationResult executePutIntegration(PutIntegrationRequest putIntegrationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putIntegrationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,716,173
public static boolean deployV2Contract(FiscoConfig fiscoConfig) throws BrokerException {<NEW_LINE>BcosSDK sdk = Web3SDKConnector.buidBcosSDK(fiscoConfig);<NEW_LINE>Map<Integer, Client> groups = new HashMap<>();<NEW_LINE>// 1 is always exist<NEW_LINE>Integer defaultGroup = <MASK><NEW_LINE>Client defaultClient = Web3SDKC...
Integer.parseInt(WeEvent.DEFAULT_GROUP_ID);
1,602,137
public ASTToken read(Cookie cookie, CharInput input, Language language) {<NEW_LINE>if (input.eof())<NEW_LINE>return null;<NEW_LINE>int originalIndex = input.getIndex();<NEW_LINE>Pattern pattern = stateToPattern.get(cookie.getState());<NEW_LINE>if (pattern == null)<NEW_LINE>return null;<NEW_LINE>TokenType tokenType = (T...
String endState = tokenType.getEndState();
1,699,279
private void validateUnionValue(TomlNode tomlValue, String variableName, BUnionType unionType) {<NEW_LINE>visitedNodes.add(tomlValue);<NEW_LINE>Object balValue = Utils.getBalValueFromToml(tomlValue, visitedNodes, unionType, invalidTomlLines, variableName);<NEW_LINE>List<Type> convertibleTypes = new ArrayList<>();<NEW_L...
location().lineRange());
140,156
public void openPanel(ContentManager contentManager, String tabName, DevToolsUrl devToolsUrl, Runnable onBrowserUnavailable) {<NEW_LINE>// If the browser failed to start during setup, run unavailable callback.<NEW_LINE>if (browser == null) {<NEW_LINE>onBrowserUnavailable.run();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// M...
content.setIcon(FlutterIcons.Phone);
1,551,600
private void checkSubscriptionForStuff(Subscription sub) {<NEW_LINE>if (sub.isSearchTemplate()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (sub.isSubscribed() && sub.getAddType() != Subscription.ADD_TYPE_IMPORT) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Engine engine = sub.getEngine();<NEW_LINE>if (engine in...
arg.split(":", 2);
1,202,804
protected FlatProfileContainer generateFlatProfile() {<NEW_LINE>preGenerateFlatProfile();<NEW_LINE>PrestimeCPUCCTNode[] children = (PrestimeCPUCCTNode[]) rootNode.getChildren();<NEW_LINE>if (children != null)<NEW_LINE>for (int i = 0; i < children.length; i++) {<NEW_LINE>CPUCCTContainer childContainer = children[i].getC...
.totalTimePerMethodId0 = childContainer.totalTimePerMethodId1 = null;
1,514,839
private Element addRow(Level level, String msg) {<NEW_LINE>int sinceReset = VDebugWindow.getMillisSinceReset();<NEW_LINE>int sinceStart = VDebugWindow.getMillisSinceStart();<NEW_LINE>Element row = DOM.createDiv();<NEW_LINE>row.addClassName(VDebugWindow.STYLENAME + "-row");<NEW_LINE>row.<MASK><NEW_LINE>String inner = "<...
addClassName(level.getName());
1,334,278
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>Context ctx = getContext();<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>currentDirectory = savedInstanceState.getParcelable(CURRENT_DIRECTORY);<NEW_LINE>newDirectory = savedInstanceState.getParcelable(NEW_DIRECTORY);<NEW_LINE>}<NEW_LINE>if (ctx =...
() : newDirectory.getTitle();
295,785
protected void read(FileAccessor fa, DirectByteBuffer buffer, long position) throws FMFileManagerException {<NEW_LINE>int <MASK><NEW_LINE>try {<NEW_LINE>int len = original_limit - buffer.position(SS);<NEW_LINE>// System.out.println( "compact: read - " + position + "/" + len );<NEW_LINE>// deal with any read access to t...
original_limit = buffer.limit(SS);
2,044
final CreateServiceResult executeCreateService(CreateServiceRequest createServiceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createServiceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
endClientExecution(awsRequestMetrics, request, response);
1,061,016
public double[][] inverse() {<NEW_LINE><MASK><NEW_LINE>return new double[][] { { invDet3 * det2(m22, m23, m32, m33), invDet3 * det2(m13, m12, m33, m32), invDet3 * det2(m12, m13, m22, m23) }, { invDet3 * det2(m23, m21, m33, m31), invDet3 * det2(m11, m13, m31, m33), invDet3 * det2(m13, m11, m23, m21) }, { invDet3 * det2(...
double invDet3 = 1 / determinant();
1,291,328
public void marshall(SimulationApplicationConfig simulationApplicationConfig, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (simulationApplicationConfig == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(sim...
simulationApplicationConfig.getUseDefaultTools(), USEDEFAULTTOOLS_BINDING);
1,181,919
private static void insertTabletWithAlignedTimeseriesMethod2() throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>// The schema of measurements of one device<NEW_LINE>// only measurementId and data type in MeasurementSchema take effects in Tablet<NEW_LINE>List<MeasurementSchema> schemaList = new Ar...
new SecureRandom().nextLong();
119,599
private void _onActivityResultLocationPage(Bundle bundle) {<NEW_LINE>String callbackId = bundle.getString("callbackId");<NEW_LINE>CallbackContext callbackContext = new CallbackContext(callbackId, this.webView);<NEW_LINE>LocationManager locationManager = (LocationManager) this.<MASK><NEW_LINE>List<String> providers = lo...
activity.getSystemService(Context.LOCATION_SERVICE);
1,200,548
public void combine(CRFClassifier<IN> crf, double weight) {<NEW_LINE>Timing timer = new Timing();<NEW_LINE>// Check the CRFClassifiers are compatible<NEW_LINE>if (!this.pad.equals(crf.pad)) {<NEW_LINE>throw new RuntimeException("Incompatible CRFClassifier: pad does not match");<NEW_LINE>}<NEW_LINE>if (this.windowSize !...
int oldNumWeights2 = crf.getNumWeights();
1,203,460
public CreateEndOfMeetingReminder unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateEndOfMeetingReminder createEndOfMeetingReminder = new CreateEndOfMeetingReminder();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
JsonToken token = context.getCurrentToken();
552,447
private static Object enumInitInOrder(Context cx, IdEnumeration x) {<NEW_LINE>if (!(x.obj instanceof SymbolScriptable) || !ScriptableObject.hasProperty(x.obj, SymbolKey.ITERATOR)) {<NEW_LINE>throw typeErrorById("msg.not.iterable", toString(x.obj));<NEW_LINE>}<NEW_LINE>Object iterator = ScriptableObject.getProperty(x.ob...
, toString(x.obj));
148,476
public static boolean isValidCipherSuiteForSignatureAlgorithms(int cipherSuite, Vector sigAlgs) {<NEW_LINE><MASK><NEW_LINE>switch(keyExchangeAlgorithm) {<NEW_LINE>case KeyExchangeAlgorithm.DHE_DSS:<NEW_LINE>case KeyExchangeAlgorithm.DHE_RSA:<NEW_LINE>case KeyExchangeAlgorithm.ECDHE_ECDSA:<NEW_LINE>case KeyExchangeAlgor...
final int keyExchangeAlgorithm = getKeyExchangeAlgorithm(cipherSuite);
733,845
public static PluginBean unmarshallPlugin(Map<String, Object> source) {<NEW_LINE>if (source == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>PluginBean bean = new PluginBean();<NEW_LINE>bean.setId(asLong(source.get("id")));<NEW_LINE>bean.setName(asString(source.get("name")));<NEW_LINE>bean.setDescription(asString(s...
source.get("groupId")));
1,302,792
public static DescribeWebsiteStatResponse unmarshall(DescribeWebsiteStatResponse describeWebsiteStatResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeWebsiteStatResponse.setRequestId(_ctx.stringValue("DescribeWebsiteStatResponse.RequestId"));<NEW_LINE>describeWebsiteStatResponse.setTotalCount(_ctx.integerValue("De...
("DescribeWebsiteStatResponse.WebsiteStatList[" + i + "].RiskCount"));
908,679
private // already hold the lock.<NEW_LINE>void checkPrimitiveType(int accessor, int typeCode) throws JMFUninitializedAccessException, JMFSchemaViolationException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>JmfTr.entry(this, tc, "checkPrimitiveType", new Object[] { Integer.value...
JMFSchemaViolationException("Value at accessor " + accessor + " is incorrect type");
1,851,717
public double[] transformToDoubleValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>if (_resultMetadata.getDataType().getStoredType() != DataType.DOUBLE) {<NEW_LINE>return super.transformToDoubleValuesSV(projectionBlock);<NEW_LINE>}<NEW_LINE>int[] selected = getSelectedArray(projectionBlock);<NEW_LINE>int numDocs = p...
0, _doubleResults, 0, numDocs);
103,249
public void initialize(WizardDescriptor wizardDescriptor) {<NEW_LINE>wiz = wizardDescriptor;<NEW_LINE>Project project = Templates.getProject(wiz);<NEW_LINE>Sources sources = ProjectUtils.getSources(project);<NEW_LINE>sourceGroups = sources.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);<NEW_LINE>ejbPanel = new...
WizardDescriptor.Panel[] { targetChooserPanel };
386,228
private void computeLastStatementSelected() {<NEW_LINE>ASTNode[] nodes = getSelectedNodes();<NEW_LINE>if (nodes.length == 0) {<NEW_LINE>fIsLastStatementSelected = false;<NEW_LINE>} else {<NEW_LINE>Block body = null;<NEW_LINE>LambdaExpression enclosingLambdaExpr = ASTResolving.findEnclosingLambdaExpression(getFirstSelec...
ASTNode lambdaBody = enclosingLambdaExpr.getBody();
569,614
public void configurarCores() {<NEW_LINE>mainpanel.setBackground(ColorController.FUNDO_MEDIO);<NEW_LINE>paineInferior.setBackground(ColorController.FUNDO_ESCURO);<NEW_LINE>painelTitleIssue.setBackground(ColorController.FUNDO_MEDIO);<NEW_LINE>labelTitleIssue.setForeground(ColorController.COR_LETRA);<NEW_LINE>painelTxtIs...
ColorController.COR_LETRA, 2, true);
1,180,949
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject().field("state", state()).field("primary", primary()).field("node", currentNodeId()).field("relocating_node", relocatingNodeId()).field("shard", id()).<MASK><NEW_LINE>if (tokenRanges != null && to...
field("index", getIndexName());
970,767
default void updateOrInsert(Map<String, List<String>> values, int ticketId, int eventId) {<NEW_LINE>Map<String, TicketFieldValue> toUpdate = findAllByTicketIdGroupedByName(ticketId);<NEW_LINE>values = Optional.ofNullable(values<MASK><NEW_LINE>var additionalFieldsForEvent = findAdditionalFieldsForEvent(eventId);<NEW_LIN...
).orElseGet(Collections::emptyMap);
232,298
public void process(Page page) {<NEW_LINE>// http://progressdaily.diandian.com/post/2013-01-24/40046867275<NEW_LINE>List<String> requests = page.getHtml().xpath("//a[@class=\"area_link flat_btn\"]/@href").all();<NEW_LINE>if (requests.size() > 2) {<NEW_LINE>requests = requests.subList(0, 2);<NEW_LINE>}<NEW_LINE>page.add...
().xpath("//ul[@class=\"dishes menu_dishes\"]/li/span[@class=\"name\"]/text()"));
251,174
public final AnyCharContext anyChar() throws RecognitionException {<NEW_LINE>AnyCharContext _localctx = new AnyCharContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 20, RULE_anyChar);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(97);<NEW_LINE><MASK><NEW_LINE...
_la = _input.LA(1);
1,777,698
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE><MASK><NEW_LINE>builder.xContentList(Fields.BOUND_ADDRESS, address.boundAddresses());<NEW_LINE>builder.field(Fields.PUBLISH_ADDRESS, formatPublishAddressString("transport.publish_address", address.publishAddress()));...
builder.startObject(Fields.TRANSPORT);
477,012
// Treat Emacs profile specially in order to fix #191895<NEW_LINE>private void emacsProfileFix(final JTextComponent incSearchTextField) {<NEW_LINE>class JumpOutOfSearchAction extends AbstractAction {<NEW_LINE><NEW_LINE>private final String actionName;<NEW_LINE><NEW_LINE>public JumpOutOfSearchAction(String n) {<NEW_LINE...
.CTRL_MASK, false), "caret-up-alt");
1,424,947
private void proposeMove() {<NEW_LINE>Integer action;<NEW_LINE>int time = (timeCombo.getSelectedIndex() + 1) * 5;<NEW_LINE>AdversarialSearch<ConnectFourState, Integer> search;<NEW_LINE>switch(strategyCombo.getSelectedIndex()) {<NEW_LINE>case 0:<NEW_LINE>search = MinimaxSearch.createFor(game);<NEW_LINE>break;<NEW_LINE>c...
game, 0.0, 1.0, time);
1,235,511
public NestedSet<Artifact> discoverInputs(ActionExecutionContext actionExecutionContext) throws ActionExecutionException, InterruptedException {<NEW_LINE>// If the Starlark action shadows another action and the shadowed action discovers its inputs,<NEW_LINE>// we get the shadowed action's discovered inputs and append i...
(), inputFilesForExtraAction, allStarlarkActionInputs));
945,430
private void handleErrorsOnSave(@Nonnull Map<Document, IOException> failures) {<NEW_LINE>if (ApplicationManager.getApplication().isUnitTestMode()) {<NEW_LINE>IOException ioException = ContainerUtil.getFirstItem(failures.values());<NEW_LINE>if (ioException != null) {<NEW_LINE>throw new RuntimeException(ioException);<NEW...
(UIBundle.message("cannot.save.files.dialog.title"));
1,513,725
private void stageIndex(BlockingQueue<List<Tuple<NodeId>>> pipe, TupleIndex idx) {<NEW_LINE>TransactionCoordinator coordinator = CoLib.newCoordinator();<NEW_LINE>CoLib.add(coordinator, idx);<NEW_LINE>CoLib.start(coordinator);<NEW_LINE>Transaction transaction = coordinator.begin(TxnType.WRITE);<NEW_LINE>boolean workHasB...
"Finish - index %s", idx.getName());
1,522,683
final ModifySecurityGroupRulesResult executeModifySecurityGroupRules(ModifySecurityGroupRulesRequest modifySecurityGroupRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifySecurityGroupRulesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
invoke(request, responseHandler, executionContext);
1,771,959
public <T> void transitionLock(String topologyId, boolean errorOnNoTransition, StatusType changeStatus, T... args) throws Exception {<NEW_LINE>// get ZK's topology node's data, which is StormBase<NEW_LINE>StormBase stormbase = data.getStormClusterState(<MASK><NEW_LINE>if (stormbase == null) {<NEW_LINE>LOG.error("Cannot...
).storm_base(topologyId, null);
1,081,304
public void clusterChanged(ClusterChangedEvent event) {<NEW_LINE>if (event.localNodeMaster() && refreshAndRescheduleRunnable.get() == null) {<NEW_LINE>LOGGER.trace("elected as master, scheduling cluster info update tasks");<NEW_LINE>executeRefresh(event.state(), "became master");<NEW_LINE>final RefreshAndRescheduleRunn...
"Removing node from cluster info: {}", removedNode.getId());
569,745
public final MapIndexInfo createMapIndexInfo() {<NEW_LINE>MapContainer mapContainer = recordStore.getMapContainer();<NEW_LINE>Set<IndexConfig> indexConfigs = new HashSet<>();<NEW_LINE>if (mapContainer.isGlobalIndexEnabled()) {<NEW_LINE>// global-index<NEW_LINE>final Indexes indexes = mapContainer.getIndexes();<NEW_LINE...
addAll(indexes.getIndexDefinitions());
328,683
private static String compressImgAndroid(Bitmap bitmap, String filePath, CompressFormat compressFormat) throws IOException {<NEW_LINE>Logger.D(TAG, "compressImgAndroid+");<NEW_LINE>Exception throwing = null;<NEW_LINE>OutputStream output = null;<NEW_LINE>try {<NEW_LINE>Logger.<MASK><NEW_LINE>output = getOutputStream(fil...
D(TAG, "saving image to: " + filePath);
1,179,066
private // throws<NEW_LINE>// throws<NEW_LINE>SupertypeQueryResults // throws<NEW_LINE>computeSupertypes(// ClassNotFoundException<NEW_LINE>ClassDescriptor classDescriptor) {<NEW_LINE>if (DEBUG_QUERIES) {<NEW_LINE>System.out.println("Computing supertypes for " + classDescriptor.toDottedClassName());<NEW_LINE>}<NEW_LINE...
).toDottedClassName() + " in supertype query");
721,919
private <T> void evaluateBundle(final AppliedPTransform<?, ?, ?> transform, final CommittedBundle<T> bundle, final CompletionCallback onComplete) {<NEW_LINE>TransformExecutorService transformExecutor;<NEW_LINE>if (isKeyed(bundle.getPCollection())) {<NEW_LINE>final StepAndKey stepAndKey = StepAndKey.of(<MASK><NEW_LINE>/...
transform, bundle.getKey());
1,699,472
final ListExperimentTemplatesResult executeListExperimentTemplates(ListExperimentTemplatesRequest listExperimentTemplatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listExperimentTemplatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,762,087
private Expression<?> castIfNeeded(Type elementType, Expression<?> symb_value) {<NEW_LINE>// cast integer to real if needed<NEW_LINE>if ((TypeUtil.isFp32(elementType) || TypeUtil.isFp64(elementType)) && symb_value instanceof IntegerValue) {<NEW_LINE>IntegerValue intExpr = (IntegerValue) symb_value;<NEW_LINE>double conc...
= new RealToIntegerCast(realExpr, concValue);
1,553,858
public void initParam(Object obj) {<NEW_LINE>OptionsParam optionsParam = (OptionsParam) obj;<NEW_LINE>ConnectionParam connectionParam = optionsParam.getConnectionParam();<NEW_LINE>this.spinnerTimeoutInSecs.<MASK><NEW_LINE>checkBoxHttpStateEnabled.setSelected(connectionParam.isHttpStateEnabled());<NEW_LINE>getProxyExclu...
setValue(connectionParam.getTimeoutInSecs());
507,631
protected static void open(final String[] args, final TerminalPreferences defaults) {<NEW_LINE>// Register preferences<NEW_LINE>PreferencesFactory.set(defaults);<NEW_LINE>final <MASK><NEW_LINE>final Console console = new Console();<NEW_LINE>try {<NEW_LINE>final CommandLineParser parser = new DefaultParser();<NEW_LINE>f...
Options options = TerminalOptionsBuilder.options();
1,490,413
private boolean assertConsistentWithClusterState(ClusterState state) {<NEW_LINE>final SnapshotsInProgress snapshotsInProgress = state.custom(SnapshotsInProgress.TYPE, SnapshotsInProgress.EMPTY);<NEW_LINE>if (snapshotsInProgress.isEmpty() == false) {<NEW_LINE>synchronized (endingSnapshots) {<NEW_LINE>final Set<Snapshot>...
: "Saw completion listeners for unknown snapshots in " + snapshotListenerKeys + " but running snapshots are " + runningSnapshots;
579,966
protected void applySettingsInternal(Element element, boolean presentationSettings) {<NEW_LINE>if (!isSettingsEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (defaultSettings == null) {<NEW_LINE>// save default view before apply custom<NEW_LINE>defaultSettings = DocumentHelper.createDocument();<NEW_LINE>defaultSet...
(Boolean.parseBoolean(textSelection));
1,072,690
public RepositoryData addSnapshot(final SnapshotId snapshotId, final SnapshotState snapshotState, final List<IndexId> snapshottedIndices) {<NEW_LINE>if (snapshotIds.containsKey(snapshotId.getUUID())) {<NEW_LINE>// if the snapshot id already exists in the repository data, it means an old master<NEW_LINE>// that is block...
= new HashMap<>(snapshotIds);
164,700
private synchronized void initializeIfNeeded() throws MinecraftInterfaceException {<NEW_LINE>if (isInitialized) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Since 21w14a, the registry classes check that the game is bootstrapped,<NEW_LINE>// so toggle the relevant flag to make it so.<NEW_LINE>// If this caus...
getRawMethod().invoke(null);
1,833,562
protected void startUp() throws Exception {<NEW_LINE>shell.execute(adbCommand("start-server")).orThrow();<NEW_LINE>String selector = nullToEmpty(config().options().get("selector"));<NEW_LINE>ImmutableList<String> getSerialNumber = adbCommand(Iterables.concat(Splitter.on(' ').omitEmptyStrings().split(selector), Immutabl...
.port = server.getPort();
702,235
public void build(LiteralArgumentBuilder<CommandSource> builder) {<NEW_LINE>builder.executes(context -> {<NEW_LINE>// Modules<NEW_LINE>List<Module> modules = Modules.get().getAll().stream().filter(module -> module.keybind.isSet()).collect(Collectors.toList());<NEW_LINE>ChatUtils.info("--- Bound Modules ((highlight)%d(d...
.SHOW_TEXT, getTooltip(module));
1,335,377
public void appLoaded(String applicationName, SipAppDesc desc) {<NEW_LINE>ApplicationModuleInterface application = getAppObj(desc.getAppIndexForPmi());<NEW_LINE>if (application == null) {<NEW_LINE>application = PerformanceMgr.getInstance().getApplicationsPMIListener().getApplicationModule(applicationName);<NEW_LINE>// ...
StringBuffer buff = new StringBuffer(100);
953,610
private void showAuthorNotice() {<NEW_LINE>FirebaseRemoteConfig mFirebaseRemoteConfig = FirebaseRemoteConfig.getInstance();<NEW_LINE>FirebaseRemoteConfigSettings configSettings = new FirebaseRemoteConfigSettings.Builder().setMinimumFetchIntervalInSeconds(3600).build();<NEW_LINE>mFirebaseRemoteConfig.setConfigSettingsAs...
Log.d("FireBase_FirstOpenMsg", "Config params updated Failed. ");
423,918
private synchronized int _put(int key, MODE m) {<NEW_LINE>IntLinkedSetry[] buk = table;<NEW_LINE>int index = hash(key) % buk.length;<NEW_LINE>for (IntLinkedSetry e = buk[index]; e != null; e = e.next) {<NEW_LINE>if (CompareUtil.equals(e.key, key)) {<NEW_LINE>switch(m) {<NEW_LINE>case FORCE_FIRST:<NEW_LINE>if (header.li...
header.link_prev, header, e);
1,837,028
private void checkValidity() {<NEW_LINE>if (booleanReleaseCalled.get()) {<NEW_LINE>String id = "none";<NEW_LINE>if ((wsBBRoot != null) && (wsBBRoot.pool != null)) {<NEW_LINE>id = Integer.toString(wsBBRoot.getID());<NEW_LINE>}<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(...
id + " Sub ID: " + this.oByteBuffer);
568,185
private void createMQLinkEngineResources(MQLinkDefinition mqld, MQLinkHandler mqLinkHandler) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createMQLinkEngineResources", new Object[] { mqld, mqLinkHandler });<NEW_LINE>// Call the MQLinkManager to create the MQLink ...
SibTr.exit(tc, "createMQLinkEngineResources");
1,236,873
public void createWorkflowDef(WorkflowDef workflowDef) {<NEW_LINE>try {<NEW_LINE>String workflowDefinition = toJson(workflowDef);<NEW_LINE>if (!session.execute(insertWorkflowDefStatement.bind(workflowDef.getName(), workflowDef.getVersion(), workflowDefinition)).wasApplied()) {<NEW_LINE>throw new ApplicationException(Co...
.bind(workflowDefIndex, workflowDefIndex));
836,614
public synchronized void generatePluginConfig(String root, String serverName, boolean utilityRequest, File writeDirectory) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "generatePluginConfig", "server is stopping = " + serverIsStopping);<NEW_LINE>}<NEW_LINE>try {<NE...
"Error generate plugin xml: " + t.getMessage());
388,054
private GeneralPath createShape(GeneralPath out, double x, double y, double width, double height) {<NEW_LINE>if (hasBorderRadius()) {<NEW_LINE>out.reset();<NEW_LINE>out.moveTo(borderRadius.topLeftRadiusX(), 0);<NEW_LINE>out.lineTo(width - borderRadius.topRightRadiusX(), 0);<NEW_LINE>// out.arcTo(width-borderRadius.topR...
out.lineTo(width, 0);
1,108,434
public Map<String, RollupTask> read() throws RollUpException {<NEW_LINE>try {<NEW_LINE>Map<String, RollupTask> tasks = new HashMap<>();<NEW_LINE>Iterable<String> keys = keyStore.listKeys(SERVICE, SERVICE_KEY_CONFIG);<NEW_LINE>for (String key : keys) {<NEW_LINE>ServiceKeyValue serviceKeyValue = keyStore.getValue(SERVICE...
getLastModified().getTime());
1,832,201
public void run() {<NEW_LINE>if (followersAdapter == null) {<NEW_LINE>if (followingIds == null) {<NEW_LINE>// we will do a normal array adapter<NEW_LINE>followersAdapter = new PeopleArrayAdapter(context, followers);<NEW_LINE>} else {<NEW_LINE>followersAdapter = new FollowersArrayAdapter(context, followers, followingIds...
context, background, url, mCache);
71,518
public Image find(String id) throws IOException {<NEW_LINE>ByteBuffer buf = findMetadataFor(toByteArray(id));<NEW_LINE>if (buf == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>IntBuffer ibuf = buf.asIntBuffer();<NEW_LINE>int[<MASK><NEW_LINE>ibuf.get(intEntries);<NEW_LINE>assert id.length() == intEntries[0];<NEW_LIN...
] intEntries = new int[3];
424,754
private void toggleStarringState() {<NEW_LINE>StarringService service = ServiceFactory.get(StarringService.class, false);<NEW_LINE>Single<Response<Void>> responseSingle = mIsStarring ? service.unstarRepository(mRepository.owner().login(), mRepository.name()) : service.starRepository(mRepository.owner().login(), mReposi...
-1)).build();
1,770,493
private CodeBlock serviceSpecificHttpConfigMethodBody(String serviceDefaultFqcn, boolean supportsH2) {<NEW_LINE>CodeBlock.Builder builder = CodeBlock.builder();<NEW_LINE>if (serviceDefaultFqcn != null) {<NEW_LINE>builder.addStatement("$T result = $T.defaultHttpConfig()", AttributeMap.class, PoetUtils.classNameFromFqcn(...
().getServiceSpecificHttpConfig()));
1,541,178
protected void createTfhd(StreamingTrack streamingTrack, TrackFragmentBox parent) {<NEW_LINE>TrackFragmentHeaderBox tfhd = new TrackFragmentHeaderBox();<NEW_LINE>SampleFlags sf = new SampleFlags();<NEW_LINE>DefaultSampleFlagsTrackExtension defaultSampleFlagsTrackExtension = streamingTrack.getTrackExtension(DefaultSampl...
setSampleDependsOn(defaultSampleFlagsTrackExtension.getSampleDependsOn());
475,127
public void run() {<NEW_LINE>// remove "libs.XXX.classpath" from project.properties - not needed for shared project<NEW_LINE>AntProjectHelper helper = uiProperties.getProject().getAntProjectHelper();<NEW_LINE>EditableProperties ep = helper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);<NEW_LINE>List<String> l...
putProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH, ep);
129,152
@ApiResponses(value = { @ApiResponse(code = 201, message = "Indicates the content item data was saved and the result is returned."), @ApiResponse(code = 400, message = "Indicates required content item data is missing from the request.") })<NEW_LINE>@PostMapping(value = "/content-service/content-items/{contentItemId}/da...
throw new FlowableException("Error creating content item response", e);
21,311
public Pair<List<? extends SSHKeyPair>, Integer> listSSHKeyPairs(final ListSSHKeyPairsCmd cmd) {<NEW_LINE>final Long id = cmd.getId();<NEW_LINE>final String name = cmd.getName();<NEW_LINE>final String fingerPrint = cmd.getFingerprint();<NEW_LINE>final <MASK><NEW_LINE>final Account caller = getCaller();<NEW_LINE>final L...
String keyword = cmd.getKeyword();
232,349
public static void migrate(File legacyModelFile, File destination) throws InvalidModelException, IOException {<NEW_LINE>boolean failed = true;<NEW_LINE>try (ZipFile zip = new ZipFile(legacyModelFile);<NEW_LINE>ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(destination))) {<NEW_LINE>ZipEntry manifestEntr...
is = zip.getInputStream(manifestEntry);
462,519
private boolean check(PeerConnection peer, InventoryMessage inventoryMessage) {<NEW_LINE>InventoryType type = inventoryMessage.getInventoryType();<NEW_LINE>int size = inventoryMessage.getHashList().size();<NEW_LINE>if (peer.isNeedSyncFromPeer() || peer.isNeedSyncFromUs()) {<NEW_LINE>logger.warn("Drop inv: {} size: {} f...
peer.getInetAddress(), count);
328,247
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,598,974
private void statInit() {<NEW_LINE>lDocumentNo.setLabelFor(fDocumentNo);<NEW_LINE>fDocumentNo.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>fDocumentNo.addActionListener(this);<NEW_LINE>lDescription.setLabelFor(fDescription);<NEW_LINE>fDescription.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>...
new ALayoutConstraint(2, 0));
797,787
public static void verifyJavaCompatibility(String compiledVersion) {<NEW_LINE>String runtimeVersion = System.getProperty(JAVA_VERSION);<NEW_LINE>if (compiledVersion == null || runtimeVersion == null || compiledVersion.equals(runtimeVersion)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String[] compiledVersionParts = compile...
, compiledVersionParts[0], VERSION_ZERO);