idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
274,208
private void fillInFunctionDefinition(ExpressionDeserialization defDeserializer, DefinitionProtos.Definition.FunctionData functionProto, FunctionDefinition functionDef) throws DeserializationException {<NEW_LINE>functionDef.setOmegaParameters(functionProto.getOmegaParameterList());<NEW_LINE>functionDef.setLevelParamete...
functionDef.getParameters())));
173,253
public void postAuthentication(RoutingContext ctx) {<NEW_LINE>final User user = ctx.user();<NEW_LINE>if (user == null) {<NEW_LINE>// bad state<NEW_LINE>ctx.fail(403, new IllegalStateException("no user in the context"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// the user is authenticated, however the user may not have all...
403, new IllegalStateException("JWT scopes != handler scopes"));
702,837
private Node findUp(Node node, int dir, int offset, OutlineView outlineView, boolean canExpand) {<NEW_LINE>if (node == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Node parent = node.getParentNode();<NEW_LINE>Node[] siblings;<NEW_LINE>if (parent == null) {<NEW_LINE>siblings = new Node[] { node };<NEW_LINE>} else {...
dir, offset, outlineView, canExpand);
463,293
private BucketSearchResult splitBucket(final List<Long> path, final int keyIndex, final K keyToInsert, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>final long pageIndex = path.get(path.size() - 1);<NEW_LINE>final OCacheEntry bucketEntry = loadPageForWrite(atomicOperation, <MASK><NEW_LINE>try {<...
fileId, pageIndex, false, true);
44,243
public static void gen_CharStream(JavaResourceTemplateLocations locations) {<NEW_LINE>try {<NEW_LINE>final File file = new File(<MASK><NEW_LINE>final OutputFile outputFile = new OutputFile(file, charStreamVersion, new String[] { Options.USEROPTION__STATIC, Options.USEROPTION__SUPPORT_CLASS_VISIBILITY_PUBLIC });<NEW_LIN...
Options.getOutputDirectory(), "CharStream.java");
864,652
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException {<NEW_LINE>Logger log = Scope.getCurrentScope(<MASK><NEW_LINE>log.fine("Resolving XML entity name='" + name + "', publicId='" + publicId + "', baseURI='" + baseURI + "', systemId='" + systemI...
).getLog(getClass());
657,081
private void sendMessage(Message message, CachedTopic cachedTopic) {<NEW_LINE>StartedTimersPair brokerTimers = cachedTopic.startBrokerLatencyTimers();<NEW_LINE>brokerMessageProducer.send(message, cachedTopic, new PublishingCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onUnpublished(Message message, Top...
exception.getMessage(), "");
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...
).put("caret-up-alt", a3);
1,668,868
public static FileObject findCacheCatalog(FileObject sourceFileObject) {<NEW_LINE>URI privateCatalogURI;<NEW_LINE>Project prj = FileOwnerQuery.getOwner(sourceFileObject);<NEW_LINE>if (prj == null)<NEW_LINE>return null;<NEW_LINE>FileObject prjrtfo = prj.getProjectDirectory();<NEW_LINE>File prjrt = FileUtil.toFile(prjrtf...
File cacheFile = new File(cacheURI);
180,560
public synchronized void showGame(UUID gameId, UUID playerId, GamePane gamePane) {<NEW_LINE>this.gameId = gameId;<NEW_LINE>this.gamePane = gamePane;<NEW_LINE>this.playerId = playerId;<NEW_LINE>MageFrame.addGame(gameId, this);<NEW_LINE>this.feedbackPanel.init(gameId);<NEW_LINE>this.feedbackPanel.clear();<NEW_LINE>this.a...
this.btnSwitchHands.setVisible(false);
1,309,396
protected boolean validateIfCanCatchupFromLog(long sinceScn, long startScn, int srcid) throws SQLException, BootstrapProcessingException {<NEW_LINE>int startSCNLogId = <MASK><NEW_LINE>// Its possible that startSCN <= sinceSCN (case of slow bootstrapProducer). Encourage bypass_snapshot for this case<NEW_LINE>if (sinceSc...
_dbDao.getLogIdToCatchup(srcid, startScn);
1,840,953
public void processWay(ReaderWay way) {<NEW_LINE>try {<NEW_LINE>if (arrStorageBuilders != null) {<NEW_LINE>int nStorages = arrStorageBuilders.length;<NEW_LINE>if (nStorages > 0) {<NEW_LINE>if (nStorages == 1) {<NEW_LINE>arrStorageBuilders[0].processWay(way);<NEW_LINE>} else if (nStorages == 2) {<NEW_LINE>arrStorageBuil...
[0].processWay(way);
1,461,889
public void deleteOldIndices(ActionListener<Boolean> listener) {<NEW_LINE>ClusterState state = clusterService.state();<NEW_LINE>Set<String> indicesToDelete = new HashSet<>();<NEW_LINE>// use the transform context as we access system indexes<NEW_LINE>try (ThreadContext.StoredContext ctx = client.threadPool().getThreadCo...
), TransformInternalIndexConstants.INDEX_NAME_PATTERN)));
1,670,776
protected void computeTotalDuration() throws MaryConfigurationException {<NEW_LINE>long time = 0;<NEW_LINE>long nRead = 0;<NEW_LINE>boolean haveReadAll = false;<NEW_LINE>try {<NEW_LINE>Pair<ByteBuffer, Long> p = getByteBufferAtTime(0);<NEW_LINE><MASK><NEW_LINE>assert p.getSecond() == 0;<NEW_LINE>while (!haveReadAll) {<...
ByteBuffer bb = p.getFirst();
1,040,205
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create schema Out (id string);\n" + "@public create window MyWindow#keepall as (value string);\n", path);<NEW_LINE>env.compileExecuteFAF("insert into MyWindow select 'x' as value", path)...
sendSBAssert(env, "a", "b");
446,513
public MetaClass buildAndGetMetaClass(Class<?> clazz) {<NEW_LINE>MetaClass resultMetaClass = null;<NEW_LINE>String fqClassName = clazz.getName();<NEW_LINE>String packageName;<NEW_LINE>String className;<NEW_LINE>int lastDotIndex = fqClassName.lastIndexOf(C_DOT);<NEW_LINE>if (lastDotIndex != -1) {<NEW_LINE>packageName = ...
error("Something unexpected happened building meta class {}", fqClassName, t);
1,682,871
private String waitForUploadPort(String uploadPort, List<String> before, boolean verbose, int timeout) throws InterruptedException, RunnerException {<NEW_LINE>// Wait for a port to appear on the list<NEW_LINE>int elapsed = 0;<NEW_LINE>while (elapsed < timeout) {<NEW_LINE>List<String> now = Serial.list();<NEW_LINE>List<...
(tr("Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload."), false);
461,658
public boolean voidIt() {<NEW_LINE>log.info(toString());<NEW_LINE>if (DOCSTATUS_Closed.equals(getDocStatus()) || DOCSTATUS_Reversed.equals(getDocStatus()) || DOCSTATUS_Voided.equals(getDocStatus())) {<NEW_LINE>processMsg = "Document Closed: " + getDocStatus();<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Not Processed...
fireDocValidate(this, ModelValidator.TIMING_AFTER_VOID);
1,118,552
public String execute() throws UserException, BimserverLockConflictException, BimserverDatabaseException, ServerException {<NEW_LINE>BimDatabaseAction<User> action = new GetUserByUserTokenDatabaseAction(getDatabaseSession(), getAccessMethod(), userToken);<NEW_LINE>User user = action.execute();<NEW_LINE>if (user != null...
getDatabaseSession().store(user);
930,382
public void actionPerformed(ActionEvent exception) {<NEW_LINE>boolean hasXPathQuery = StringUtils.isNotBlank(xpathQueryArea.getText());<NEW_LINE>StringBuilder buffer = new StringBuilder(200);<NEW_LINE>appendLn(buffer, "<rule name=\"" + rulenameField.getText() + '\"');<NEW_LINE>appendLn(buffer, " message=\"" + <MASK><...
rulemsgField.getText() + '\"');
1,732,541
public SpellCorrectedQuery unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SpellCorrectedQuery spellCorrectedQuery = new SpellCorrectedQuery();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
)).unmarshall(context));
1,834,826
public void assertBasePricingIsValid(final I_M_PriceList priceList) {<NEW_LINE>final IPriceListDAO priceListsRepo = Services.get(IPriceListDAO.class);<NEW_LINE>// final PriceListVersionId basePriceListVersionId = priceListsRepo.getBasePriceListVersionIdForPricingCalculationOrNull(plv);<NEW_LINE>// if (basePriceListVers...
AdempiereException("@PriceListAndBasePriceListCurrencyMismatchError@").markAsUserValidationError();
1,059,544
private Object compensateSubStateMachine(ProcessContext context, ServiceTaskState state, Object input, StateInstance stateInstance, StateMachineEngine engine) {<NEW_LINE>String subStateMachineParentId = (String) context.getVariable(state.getName() + DomainConstants.VAR_NAME_SUB_MACHINE_PARENT_ID);<NEW_LINE>if (StringUt...
Map<String, Object>) input;
638,601
public void start() {<NEW_LINE>if (current != null) {<NEW_LINE>current.show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Form hi = new Form("Hi World", new GridLayout(1, 2));<NEW_LINE>hi.setScrollable(false);<NEW_LINE>Container draggable = new Container(new FlowLayout()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void p...
.STYLE_PLAIN, Font.SIZE_SMALL));
544,961
public String prepareIt() {<NEW_LINE>log.info(toString());<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_PREPARE);<NEW_LINE>if (m_processMsg != null)<NEW_LINE>return DocAction.STATUS_Invalid;<NEW_LINE>MRequisitionLine[] lines = getLines();<NEW_LINE>// Invalid<NEW...
setScale(precision, BigDecimal.ROUND_HALF_UP);
1,040,029
private void copy() {<NEW_LINE>StringBuilder strBuffer = new StringBuilder();<NEW_LINE>int numcols = insertRecordTableUI.getSelectedColumnCount();<NEW_LINE>int numrows = insertRecordTableUI.getSelectedRowCount();<NEW_LINE>int[<MASK><NEW_LINE>int[] colsselected = insertRecordTableUI.getSelectedColumns();<NEW_LINE>if (!(...
] rowsselected = insertRecordTableUI.getSelectedRows();
995,740
private void testLowerBoundCapacitiesReduction(int vertices, int edges, int source, int target, Exercise41.RandomNetworkGenerator randomNetworkGenerator, Exercise41.RandomCapacity randomUniformCapacity) {<NEW_LINE>FlowEdgeWithLowerBoundCapacity[] edgesWithLowerBoundCapacities = new FlowEdgeWithLowerBoundCapacity[edges]...
0, 1, 1, 0);
1,692,543
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int availableWidth = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>int titleWidth = availableWidth - connectorWidth - moreSize - 4 * rowMargins;<NEW_LINE>int titleWidthSpec = MeasureSpec.makeMeasureSpec(titleWidth, MeasureSpec.AT_MOST);<...
title.measure(titleWidthSpec, titleHeightSpec);
170,948
public void onRegTmMessage(RpcMessage request, ChannelHandlerContext ctx, RegisterCheckAuthHandler checkAuthHandler) {<NEW_LINE>RegisterTMRequest message = (RegisterTMRequest) request.getBody();<NEW_LINE>String ipAndPort = NetUtil.toStringAddress(ctx.channel().remoteAddress());<NEW_LINE>Version.putChannelVersion(ctx.ch...
LOGGER.error("TM register fail, error message:{}", errorInfo);
1,517,505
private boolean isValidData() {<NEW_LINE>final String ontTxt = getOntologyIRIString();<NEW_LINE>final String versionTxt = getOntologyVersionIRIString();<NEW_LINE>if (ontTxt.isEmpty()) {<NEW_LINE>// cannot have a version IRI without an ontology IRI<NEW_LINE>return versionTxt.isEmpty();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE...
setErrorLocation(e.getIndex());
1,641,257
private Color convertColor(String rgbaString) {<NEW_LINE>String[] splits = rgbaString.split(",");<NEW_LINE>Integer[] rgb = new Integer[3];<NEW_LINE>double a = 1;<NEW_LINE>for (int i = 0; i < splits.length; i++) {<NEW_LINE>if (i == 0) {<NEW_LINE>rgb[0] = Integer.parseInt(splits[i].substring(5).trim());<NEW_LINE>} else i...
, String.valueOf(a));
1,030,443
public // However, we ran into issues in callers of the method if we used that type.<NEW_LINE>TransferFunction createFlowTransferFunction(CFAbstractAnalysis<Value, Store, TransferFunction> analysis) {<NEW_LINE>// Try to reflectively load the visitor.<NEW_LINE>Class<?> checkerClass = checker.getClass();<NEW_LINE>while (...
new Object[] { analysis });
1,612,465
private List<IPair<IAllocationRequest, IAllocationResult>> unloadAll(final IHUContext huContext, final I_M_HU hu) {<NEW_LINE>final List<IPair<IAllocationRequest, IAllocationResult>> result = new ArrayList<>();<NEW_LINE>final HUIteratorListenerAdapter huIteratorListener = new HUIteratorListenerAdapter() {<NEW_LINE><NEW_...
final IAllocationRequest productStorageRequest = createAllocationRequest(productStorage);
1,643,210
protected void prepareTable(ColumnInfo[] layout, String from, String staticWhere, String orderBy) {<NEW_LINE>p_layout = layout;<NEW_LINE>StringBuffer sql = new StringBuffer("SELECT ");<NEW_LINE>// add columns & sql<NEW_LINE>for (int i = 0; i < layout.length; i++) {<NEW_LINE>if (i > 0)<NEW_LINE>sql.append(", ");<NEW_LIN...
[i].getKeyPairColSQL());
712,938
public void computeSelection(Selection.CombiningBuilder builder, Area area, TimeSpan ts) {<NEW_LINE>int startDepth = (int) (area.y / SLICE_HEIGHT);<NEW_LINE>int endDepth = (int) ((area.y + area.h) / SLICE_HEIGHT);<NEW_LINE>if (startDepth == endDepth && area.h / SLICE_HEIGHT < SELECTION_THRESHOLD) {<NEW_LINE>return;<NEW...
(ts, startDepth, endDepth));
87,507
// Returns the PEM (as a String) from either a path or a pem field<NEW_LINE>private static String extractPemString(JsonObject json, String fieldName, String msgPrefix) throws NetworkConfigurationException {<NEW_LINE>String path = null;<NEW_LINE>String pemString = null;<NEW_LINE>JsonObject jsonField = getJsonValueAsObje...
(jsonField.get("path"));
649,976
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String job) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>if (!busi...
fromActivityToken_FIELDNAME, ReadCompleted.activityToken_FIELDNAME, readCompletedList_FIELDNAME);
309,522
public void marshall(AssociationDescription associationDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (associationDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(associationDescrip...
associationDescription.getAssociationName(), ASSOCIATIONNAME_BINDING);
1,456,668
private void handleSecurityGroupRefDeletion(CascadeAction action, final Completion completion) {<NEW_LINE>List<VmNicSecurityGroupRefInventory> refs = refFromAction(action);<NEW_LINE>if (refs.isEmpty()) {<NEW_LINE>completion.success();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, List<String>> map = new HashMap<Stri...
, List<String>>();
366,490
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>response.setContentType("application/json");<NEW_LINE>final PrintWriter out = response.getWriter();<NEW_LINE>Set<ObjectInstance> objectInstances = mBeanServer.queryMBeans(pluginQuery, null);<NEW_LINE>if (objectI...
.get("Name"), pluginDefinition);
1,732,886
private void initMediaTracks(int rendererIndex) {<NEW_LINE>if (mRenderers[rendererIndex] == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Renderer renderer = mRenderers[rendererIndex];<NEW_LINE>renderer.mediaTracks = new MediaTrack[renderer.trackGroups.length][];<NEW_LINE>renderer.sortedTracks = new TreeSet<>(new MediaT...
format = group.getFormat(trackIndex);
1,268,308
void create(Set<String> tableDirs, Manager manager) throws IOException {<NEW_LINE>UniqueNameAllocator namer = manager.getContext().getUniqueNameAllocator();<NEW_LINE>for (ImportedTableInfo.DirectoryMapping dm : tableInfo.directories) {<NEW_LINE>Path exportDir = new Path(dm.exportDir);<NEW_LINE>log.info("Looking for mat...
IOException(dm.exportDir + " is not in the same file system as any volume configured for Accumulo");
709,565
public SolrQueryResponse query(SolrQueryRequest req) throws SolrException {<NEW_LINE>final long startTime = System.currentTimeMillis();<NEW_LINE>// during the solr query we set the thread name to the query string to get more debugging info in thread dumps<NEW_LINE>final String threadname = Thread.currentThread().getNam...
requestHandler.handleRequest(req, rsp);
1,289,638
public static void main(String[] args) throws Exception {<NEW_LINE>final EventProcessorClientStateManagement program = new EventProcessorClientStateManagement();<NEW_LINE>final EventProcessorClient client = new EventProcessorClientBuilder().consumerGroup(EventHubClientBuilder.DEFAULT_CONSUMER_GROUP_NAME).connectionStri...
System.out.println("Exiting process");
1,732,943
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {<NEW_LINE>// here requires to generate a sequence of finally blocks invocations depending corresponding<NEW_LINE>// to each of the traversed try statements, so that execution will terminate properly.<NEW_LINE>// lookup the...
recordReturnFrom(flowInfo.unconditionalInits());
1,848,875
public void waitToExit(final boolean forcefulShutdown) {<NEW_LINE>isEmptyLock.lock();<NEW_LINE>isEmptyCondition = isEmptyLock.newCondition();<NEW_LINE>try {<NEW_LINE>if (forcefulShutdown) {<NEW_LINE>final long startTime = System.currentTimeMillis();<NEW_LINE>final long endTime = startTime + EXIT_TIMEOUT_MS;<NEW_LINE>lo...
warn("Timed out after {} millis. Shutting down before all fragments and foremen " + "have completed.", EXIT_TIMEOUT_MS);
741,954
private void mergeHigherLevels(final KllFloatsSketch other, final long finalN) {<NEW_LINE>final int tmpSpaceNeeded = getNumRetained() + other.getNumRetainedAboveLevelZero();<NEW_LINE>final float[] workbuf = new float[tmpSpaceNeeded];<NEW_LINE>final int ub = KllHelper.ubOnNumLevels(finalN);<NEW_LINE>// ub+1 does not wor...
final int finalNumLevels = result[0];
510,577
final DeregisterTransitGatewayMulticastGroupSourcesResult executeDeregisterTransitGatewayMulticastGroupSources(DeregisterTransitGatewayMulticastGroupSourcesRequest deregisterTransitGatewayMulticastGroupSourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deregisterTransitGatewayMulticas...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
16,580
private static void loadEnchantments() {<NEW_LINE>int origin = Enchantment.values().length;<NEW_LINE>int size = ForgeRegistries.ENCHANTMENTS.getEntries().size();<NEW_LINE>putBool(Enchantment.class, "acceptingNew", true);<NEW_LINE>for (net.minecraft.world.item.enchantment.Enchantment enc : ForgeRegistries.ENCHANTMENTS) ...
enc.getRegistryName(), enchantment);
1,790,643
private static AccessToken generateSharedAccessSignature(String policyName, String sharedAccessKey, String resourceUri, Duration tokenDuration) throws UnsupportedEncodingException {<NEW_LINE>final OffsetDateTime expiresOn = OffsetDateTime.now(ZoneOffset.UTC).plus(tokenDuration);<NEW_LINE>final String utf8Encoding = UTF...
return new AccessToken(token, expiresOn);
1,693,481
private static Map<FeeCategory, Coin> parseFees(final InputStream is) throws IOException {<NEW_LINE>final Map<FeeCategory, Coin> <MASK><NEW_LINE>String line = null;<NEW_LINE>try (final BufferedReader reader = new BufferedReader(new InputStreamReader(is, StandardCharsets.US_ASCII))) {<NEW_LINE>while (true) {<NEW_LINE>li...
dynamicFees = new HashMap<>();
1,165,548
public WorkflowClient doLogin(AzkabanWorkflowClient workflowClient) {<NEW_LINE>Long _currentTime = System.currentTimeMillis();<NEW_LINE>if (_currentTime - workflowClient.getSessionUpdatedTime() > TOKEN_UPDATE_INTERVAL) {<NEW_LINE>logger.info("Creating a new session with Azkaban");<NEW_LINE>SchedulerConfigurationData sc...
.format("Cannot find scheduler %s", scheduler));
1,068,121
private static void readPredWeightTable(SeqParameterSet sps, PictureParameterSet pps, SliceHeader sh, BitReader _in) {<NEW_LINE>sh.predWeightTable = new PredictionWeightTable();<NEW_LINE>int[] numRefsMinus1 = sh.numRefIdxActiveOverrideFlag ? sh.numRefIdxActiveMinus1 : pps.numRefIdxActiveMinus1;<NEW_LINE>int[] nr = new ...
lumaLog2WeightDenom = readUEtrace(_in, "SH: luma_log2_weight_denom");
197,420
public StreamEvent find(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder, StreamEventCloner storeEventCloner) {<NEW_LINE>Collection<StreamEvent> compareStreamEvents = compareCollectionExecutor.findEvents(matchingEvent, indexedEventHolder);<NEW_LINE>if (compareStreamEvents == null) {<NEW_LINE>return exhau...
(storeEventCloner.copyStreamEvent(resultEvent));
929,227
protected void initialize(String serverName, String searchName, String ndotsName) {<NEW_LINE>reset();<NEW_LINE>String servers = System.getProperty(serverName);<NEW_LINE>if (servers != null) {<NEW_LINE>StringTokenizer st = new StringTokenizer(servers, ",");<NEW_LINE>while (st.hasMoreTokens()) {<NEW_LINE>String server = ...
log.warn("Ignored invalid server {}", server);
446,409
private static MediaCodec createMediaCodec(final CameraMediaSourceConfiguration mediaSourceConfiguration) {<NEW_LINE>try {<NEW_LINE>final MediaCodec encoder = MediaCodec.createEncoderByType(mediaSourceConfiguration.getEncoderMimeType());<NEW_LINE>try {<NEW_LINE>encoder.configure(configureMediaFormat(mediaSourceConfigur...
NULL_SURFACE, NULL_CRYPTO, MediaCodec.CONFIGURE_FLAG_ENCODE);
1,424,308
public com.amazonaws.services.polly.model.InvalidNextTokenException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.polly.model.InvalidNextTokenException invalidNextTokenException = new com.amazonaws.services.polly.model.InvalidNextTokenException(null);<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
1,440,002
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void browseLocationAction(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_browseLocationAction<NEW_LINE>String command = evt.getActionCommand();<NEW_LINE>if ("BROWSE".equals(command)) {<NEW_LINE>// NOI18N<NEW_LINE>JFileChooser chooser = new JFileC...
= this.projectLocationTextField.getText();
1,122,613
final DescribeHubResult executeDescribeHub(DescribeHubRequest describeHubRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeHubRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
386,696
private void calcVanilla(MutableQuadViewImpl quad, float[] aoDest, int[] lightDest) {<NEW_LINE>vanillaAoControlBits.clear();<NEW_LINE>final Direction face = quad.lightFace();<NEW_LINE>quad.toVanilla(<MASK><NEW_LINE>VanillaAoHelper.updateShape(blockInfo.blockView, blockInfo.blockState, blockInfo.blockPos, vertexData, fa...
0, vertexData, 0, false);
1,838,535
public com.amazonaws.services.lakeformation.model.InternalServiceException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lakeformation.model.InternalServiceException internalServiceException = new com.amazonaws.services.lakeformation.model.InternalServiceExcep...
int originalDepth = context.getCurrentDepth();
1,387,113
private static Container transform(Map<String, Object> map) {<NEW_LINE>final Container container;<NEW_LINE>container = new Container();<NEW_LINE>container.setInode((String) map.get("inode"));<NEW_LINE>container.setOwner((String) map.get("owner"));<NEW_LINE>container.setIDate((Date) map.get("idate"));<NEW_LINE>container...
) map.get("pre_loop"));
21,616
private static List<Token> evaluateHashhashOperators(List<Token> tokens) {<NEW_LINE>var newTokens = new ArrayList<Token>();<NEW_LINE>Iterator<Token> it = tokens.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE><MASK><NEW_LINE>if ("##".equals(curr.getValue())) {<NEW_LINE>var pred = predConcatToken(newTokens);<NEW_LI...
var curr = it.next();
1,094,392
public Environment build() {<NEW_LINE>DefaultEnvironment environment = new DefaultEnvironment();<NEW_LINE>// Environment creation logic needs to validate following things<NEW_LINE>// BallerinaDistribution<NEW_LINE>// BallerinaUserHome --> create if not exists get the .ballerina<NEW_LINE>// centralRepo = BallerinaUserHo...
ballerinaUserHome.localPackageRepository(), packageCache);
215,809
private void createUpgradeTask(UserIntent userIntent, Universe universe, PlacementInfo pi) {<NEW_LINE>String ybSoftwareVersion = null;<NEW_LINE>boolean masterChanged = false;<NEW_LINE>boolean tserverChanged = false;<NEW_LINE>if (taskParams().taskType == UpgradeTaskParams.UpgradeTaskType.Software) {<NEW_LINE>ybSoftwareV...
).setSubTaskGroupType(getTaskSubGroupType());
1,668,895
public void createSentryParts() {<NEW_LINE>CmmnActivity activity = getActivity();<NEW_LINE>ensureNotNull("Case execution '" + id + "': has no current activity", "activity", activity);<NEW_LINE>List<CmmnSentryDeclaration> sentries = activity.getSentries();<NEW_LINE>if (sentries != null && !sentries.isEmpty()) {<NEW_LINE...
> variableOnPartDeclarations = sentryDeclaration.getVariableOnParts();
1,757,758
public boolean canMark(AnActionEvent e) {<NEW_LINE>Module module = e.getData(LangDataKeys.MODULE);<NEW_LINE>VirtualFile[] vFiles = e.getData(CommonDataKeys.VIRTUAL_FILE_ARRAY);<NEW_LINE>if (module == null || vFiles == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>ModuleRootManager <MASK><NEW_LINE>final ContentEntr...
moduleRootManager = ModuleRootManager.getInstance(module);
756,585
public static boolean writeToStream(Bitmap realBitmap, CompressFormat format, int quality, OutputStream stream) {<NEW_LINE>if ((quality < 0) || (quality > 100)) {<NEW_LINE>throw new IllegalArgumentException("Quality out of bounds!");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>ImageWriter writer = null;<NEW_LINE>Iterator<ImageW...
iwparam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
461,854
void parseFiles(InputStream stdin, PrintStream output) throws Exception {<NEW_LINE>FeedContext context = new FeedContext(args.getPropertyProcessor(), args.getSessionFactory(), manager);<NEW_LINE>final BufferedInputStream input = new BufferedInputStream(stdin);<NEW_LINE>VespaFeedHandler handler = VespaFeedHandler.create...
File(fileName).length();
122,624
/* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.web.beans.analysis.analyzer.ClassModelAnalyzer.ClassAnalyzer#analyze(javax.lang.model.element.TypeElement, javax.lang.model.element.TypeElement, org.netbeans.modules.web.beans.api.model.WebBeansModel, java.util.List, org.netbeans.api.java.source.CompilationInfo, jav...
true).size() > 0;
1,538,621
public static Object fetch(String id) {<NEW_LINE>try {<NEW_LINE>checkCapabilities();<NEW_LINE><MASK><NEW_LINE>ContentResolver r = getContentResolver();<NEW_LINE>Uri uri = ContentUris.withAppendedId(EVENTS_URI, Long.parseLong(id));<NEW_LINE>final Cursor eventCursor = r.query(uri, new String[] { EVENTS_ID, EVENTS_TITLE, ...
Logger.D(TAG, "fetch(id)");
1,681,078
public static DescribeAntChainCertificateApplicationsV2Response unmarshall(DescribeAntChainCertificateApplicationsV2Response describeAntChainCertificateApplicationsV2Response, UnmarshallerContext _ctx) {<NEW_LINE>describeAntChainCertificateApplicationsV2Response.setRequestId<MASK><NEW_LINE>describeAntChainCertificateAp...
(_ctx.stringValue("DescribeAntChainCertificateApplicationsV2Response.RequestId"));
1,392,744
protected void loadTileLayer(TiledMap map, MapLayers parentLayers, Element element) {<NEW_LINE>if (element.getName().equals("layer")) {<NEW_LINE>int width = element.getIntAttribute("width", 0);<NEW_LINE>int height = element.getIntAttribute("height", 0);<NEW_LINE>int tileWidth = map.getProperties().get("tilewidth", Inte...
ids[y * width + x];
1,251,192
private Optional<Checksum> validateChecksum(String sha256, String integrity, List<URL> urls) throws RepositoryFunctionException, EvalException {<NEW_LINE>if (!sha256.isEmpty()) {<NEW_LINE>if (!integrity.isEmpty()) {<NEW_LINE>throw Starlark.errorf("Expected either 'sha256' or 'integrity', but not both");<NEW_LINE>}<NEW_...
(Checksum.fromSubresourceIntegrity(integrity));
214,538
private static double regularizedIncompleteGammaSeries(double a, double x) {<NEW_LINE>if (a < 0.0 || x < 0.0 || x >= a + 1) {<NEW_LINE>throw new IllegalArgumentException(String.format<MASK><NEW_LINE>}<NEW_LINE>int i = 0;<NEW_LINE>double igf = 0.0;<NEW_LINE>boolean check = true;<NEW_LINE>double acopy = a;<NEW_LINE>doubl...
("Invalid a = %f, x = %f", a, x));
514,634
/*<NEW_LINE>* Converts a JSON String to a map of SourceIds to DbusKeyFilter<NEW_LINE>*<NEW_LINE>* @param String containing JSON representation of DbusKeyFilter object<NEW_LINE>* @return Map of SourceIds to DbusKeyFilter<NEW_LINE>*<NEW_LINE>* @throws<NEW_LINE>* JSONException if JSON Parser is unable to parse the data...
LOG.error("Got exception while parsing filterConfig", ex);
1,752,431
private static int mapActions(SQLite3GlobalState globalState, Action a) {<NEW_LINE>int nrPerformed = 0;<NEW_LINE>Randomly r = globalState.getRandomly();<NEW_LINE>switch(a) {<NEW_LINE>case CREATE_VIEW:<NEW_LINE>nrPerformed = r.getInteger(0, 2);<NEW_LINE>break;<NEW_LINE>case DELETE:<NEW_LINE>case DROP_VIEW:<NEW_LINE>case...
r.getInteger(0, 3);
984,537
final CreateVirtualRouterResult executeCreateVirtualRouter(CreateVirtualRouterRequest createVirtualRouterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createVirtualRouterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
invoke(request, responseHandler, executionContext);
253,740
final ListDatasetsResult executeListDatasets(ListDatasetsRequest listDatasetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDatasetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
422,443
public static String buildAuraHome() {<NEW_LINE>String providedPath = System.getProperty("aura.home");<NEW_LINE>if (providedPath != null) {<NEW_LINE>try {<NEW_LINE>// try to clean up any provided path<NEW_LINE>File canonical = new File(providedPath).getCanonicalFile();<NEW_LINE>if (canonical.exists() && canonical.isDir...
<?> clazz = AuraUtil.class;
753,110
private void startupDeviceCall() {<NEW_LINE>String aUserId = bridgeSettingMaster.getBridgeSecurity().createWhitelistUser("test_ha_bridge");<NEW_LINE>List<DeviceDescriptor> deviceList = repository.findAll();<NEW_LINE>String aChangeBody;<NEW_LINE>String[] components;<NEW_LINE>boolean comma = false;<NEW_LINE>for (DeviceDe...
aChangeBody + "\"bri\":" + components[1];
490,942
static Predicate<Object, Object> toPredicate(JetSqlRow left, int[] leftEquiJoinIndices, int[] rightEquiJoinIndices, QueryPath[] rightPaths) {<NEW_LINE>PredicateBuilder builder = Predicates.newPredicateBuilder();<NEW_LINE>EntryObject entryObject = builder.getEntryObject();<NEW_LINE>for (int i = 0; i < leftEquiJoinIndice...
get(rightPath.getPath());
1,045,753
protected void draw(Canvas c, MapView osmv, boolean shadow) {<NEW_LINE>if (DEBUGMODE) {<NEW_LINE>ClientLog.d(LOG_TAG, "onDraw(" + shadow + ")");<NEW_LINE>}<NEW_LINE>if (shadow) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Projection projection = osmv.getProjection();<NEW_LINE>// Get the area we are drawing to<NEW_LINE>Rect s...
right, screenRect.bottom, mBottomRightMercator);
565,671
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("to" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object o = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (o instanc...
MessageManager mm = EngineMessage.get();
1,538,224
public List<TextFileType> statusBarFileTypes() {<NEW_LINE>ArrayList<TextFileType> fileTypes = new ArrayList<TextFileType>(Arrays.asList(FileTypeRegistry.TEXT, FileTypeRegistry.R, FileTypeRegistry.RMARKDOWN, FileTypeRegistry.SWEAVE, FileTypeRegistry.RHTML, FileTypeRegistry.RPRESENTATION, FileTypeRegistry.RD, FileTypeReg...
.TEX), FileTypeRegistry.QUARTO);
1,472,000
public // 0 bsi1:1:1.8:2:2.6 8f81878...<NEW_LINE>void map(final LongWritable key, final Text value, final OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>final String[] line = value.toString().split("\t");<NEW_LINE>final String[] tokens = line<MASK><NEW_LINE>int m...
[1].split(" ");
407,332
public static void updateCurrentTrack(View v, final Activity ctx, final OsmandApplication app) {<NEW_LINE>final OsmandMonitoringPlugin plugin = OsmandPlugin.getActivePlugin(OsmandMonitoringPlugin.class);<NEW_LINE>if (v == null || ctx == null || app == null || plugin == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final...
(R.drawable.ic_action_rec_stop));
254,526
CellVectorMapMap decompose(Tensor input, SplitHow how) {<NEW_LINE>var iter = input.cellIterator();<NEW_LINE>String[] commonLabels = new String[(int) how.numCommon()];<NEW_LINE>String[] separateLabels = new String[(int) how.numSeparate()];<NEW_LINE>CellVectorMapMap result = new CellVectorMapMap();<NEW_LINE>while (iter.h...
commonAddr = TensorAddress.of(commonLabels);
571,288
public static String asString() {<NEW_LINE>final StringBuilder sb = new StringBuilder("Config{\n");<NEW_LINE>sb.append(" DEFAULT_BASE_DIR=").append(DEFAULT_BASE_DIR);<NEW_LINE>sb.append(",\n DEFAULT_BASE_CACHE_DIR=").append(DEFAULT_BASE_CACHE_DIR);<NEW_LINE>sb.append(",\n DEFAULT_BASE_LOG_FILE=").append(DEFAULT_BASE_LO...
(",\n worldUUID=").append(worldUUID);
1,390,256
public CaseExpression visitCase(CaseExpression expr, Void params) {<NEW_LINE>List<Expression> newArgs = new ArrayList<>(expr.<MASK><NEW_LINE>for (Expression argument : expr.getArguments()) {<NEW_LINE>Expression newArg = acceptSelf(argument, true);<NEW_LINE>if (newArg == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE...
getArguments().size());
1,237,241
public CodegenExpression codegen(EnumForgeCodegenParams args, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenMethod method = codegenMethodScope.makeChild(EPTypePremade.COLLECTION.getEPType(), EnumDistinctOfScalarNoParams.class, codegenClassScope).addParam(EnumForgeCodegenN...
method, args.getExpressions());
732,240
private final void onButtonPressed() {<NEW_LINE>try {<NEW_LINE>// Show the dialog<NEW_LINE>final VImageDialog vid = new VImageDialog(Env.getWindow(m_WindowNo), m_WindowNo, m_mImage);<NEW_LINE>vid.setVisible(true);<NEW_LINE>// Do nothing if user canceled (i.e. closed the window)<NEW_LINE>if (vid.isCanceled()) {<NEW_LINE...
int AD_Image_ID = vid.getAD_Image_ID();
1,334,490
public void after(Object target, Object[] args, Object result, Throwable throwable) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.afterInterceptor(target, args, result, throwable);<NEW_LINE>}<NEW_LINE>AsyncContext asyncContext = AsyncContextAccessorUtils.getAsyncContext(args, 0);<NEW_LINE>if (asyncContext == null) {<NEW_LI...
Trace trace = asyncContext.currentAsyncTraceObject();
1,809,761
protected void migrateToVersion2() throws SQLException {<NEW_LINE>execute("ALTER TABLE %TABLE% ADD STRATEGY_ID VARCHAR(200)");<NEW_LINE>execute("ALTER TABLE %TABLE% ADD STRATEGY_PARAMS VARCHAR(2000)");<NEW_LINE>Statement updateDataStmt = connection.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE...
resultSet.getString(Columns.FEATURE_USERS);
1,040,697
private Optional<JsonResponseUpsert> persistForBPartnerWithinTrx(@Nullable final String orgCode, @NonNull final ExternalIdentifier bpartnerIdentifier, @NonNull final JsonRequestContactUpsert jsonContactUpsert, @NonNull final SyncAdvise parentSyncAdvise) {<NEW_LINE>final OrgId orgId = retrieveOrgIdOrDefault(orgCode);<NE...
JsonResponseUpsertBuilder response = JsonResponseUpsert.builder();
338,555
// synchronized for updating job<NEW_LINE>public void rescheduleJob(final JobInstance toBeRescheduled) {<NEW_LINE>final JobIdentifier jobIdentifier = toBeRescheduled.getIdentifier();<NEW_LINE>synchronized (mutexForStageInstance(jobIdentifier)) {<NEW_LINE>synchronized (mutexForJob(jobIdentifier)) {<NEW_LINE>transactionT...
loadPlan(oldJob.getId());
87,897
protected void visit(BeanPropertyVisitor pv, BeanProperty p) {<NEW_LINE>if (p instanceof BeanPropertyAssocMany<?>) {<NEW_LINE>// oneToMany or manyToMany<NEW_LINE>pv.visitMany((BeanPropertyAssocMany<?>) p);<NEW_LINE>} else if (p instanceof BeanPropertyAssocOne<?>) {<NEW_LINE>BeanPropertyAssocOne<?> assocOne = (BeanPrope...
] embProps = assocOne.properties();
1,762,947
public static ListFunctionResponse unmarshall(ListFunctionResponse listFunctionResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFunctionResponse.setRequestId(_ctx.stringValue("ListFunctionResponse.RequestId"));<NEW_LINE>listFunctionResponse.setHttpStatusCode(_ctx.stringValue("ListFunctionResponse.HttpStatusCode"));<N...
(_ctx.integerValue("ListFunctionResponse.Paginator.Total"));
680,295
private void markupDynamicTable(TaskMonitor monitor) {<NEW_LINE>// Assume default space for pointers<NEW_LINE>Address dynamicTableAddress = null;<NEW_LINE>try {<NEW_LINE>ElfDynamicTable dynamicTable = elf.getDynamicTable();<NEW_LINE>if (dynamicTable == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>dynamicTableAddress = ...
dynamicType = elf.getDynamicType(tagType);
722,389
private boolean sameCommentHandler(TokenHierarchy<?> th, int offset, boolean backwardBias, CommentHandler cH) {<NEW_LINE>CommentHandler cH2 = null;<NEW_LINE>List<TokenSequence<?>> seqs = th.embeddedTokenSequences(offset, backwardBias);<NEW_LINE>if (!seqs.isEmpty()) {<NEW_LINE>for (int i = seqs.size() - 1; i >= 0; i--) ...
language().mimeType());