idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
120,750
public static void convolveV(Kernel kernel, int[] inPixels, int[] outPixels, int width, int height, boolean alpha, int edgeAction) {<NEW_LINE>int index = 0;<NEW_LINE>float[] matrix = kernel.getKernelData(null);<NEW_LINE>int rows = kernel.getHeight();<NEW_LINE>int rows2 = rows / 2;<NEW_LINE>for (int y = 0; y < height; y...
+ height) % height) * width;
171,911
final GetResourceRequestStatusResult executeGetResourceRequestStatus(GetResourceRequestStatusRequest getResourceRequestStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourceRequestStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
false), new GetResourceRequestStatusResultJsonUnmarshaller());
891,099
private void doConnect(String password) throws IOException {<NEW_LINE>is = new <MASK><NEW_LINE>os = new DataOutputStream(socket.getOutputStream());<NEW_LINE>// Initialize connection<NEW_LINE>handshake();<NEW_LINE>authenticate(password);<NEW_LINE>initialize();<NEW_LINE>s_logger.info("Connecting to VNC server succeeded, ...
DataInputStream(socket.getInputStream());
326,919
public static void addCopyToClipMenu(final Control control, final copyToClipProvider provider) {<NEW_LINE>MouseAdapter ml = (MouseAdapter) control.getData(MOUSE_LISTENER_KEY);<NEW_LINE>if (ml != null) {<NEW_LINE>control.removeMouseListener(ml);<NEW_LINE>}<NEW_LINE>ml = new MouseAdapter() {<NEW_LINE><NEW_LINE>@Override<...
MenuItem(menu, SWT.NONE);
1,386,253
static Condition createCondition(Object param, SectionBlock block, Operator operator, SectionInitContext context) {<NEW_LINE>Condition condition;<NEW_LINE>if (param instanceof String) {<NEW_LINE>String stringParam = param.toString();<NEW_LINE>boolean logicalComplement = stringParam.startsWith(LOGICAL_COMPLEMENT);<NEW_L...
throw new TemplateException("Unsupported param type: " + param);
1,674,983
public void writeState() throws IOException {<NEW_LINE>PrintWriter writer = new PrintWriter(propertyFile);<NEW_LINE>try {<NEW_LINE>writer.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");<NEW_LINE>writer.println("<FILE_INFO>");<NEW_LINE>writer.println(" <BASIC_INFO>");<NEW_LINE>for (Entry<String, Pair<PropertyE...
(XmlUtilities.escapeElementEntities(propertyValue));
144,804
private void switchConfigurationPanel() {<NEW_LINE>assert EventQueue.isDispatchThread();<NEW_LINE>configurationPanel.removeChangeListener(this);<NEW_LINE>String name = null;<NEW_LINE>Configuration configuration = (Configuration) configList.getSelectedValue();<NEW_LINE>if (configuration != null) {<NEW_LINE>name = config...
: "Name must be found for config " + configuration.getDisplayName();
623,045
public // throws IllegalStateException<NEW_LINE>// throws IllegalStateException<NEW_LINE>void // throws IllegalStateException<NEW_LINE>resume(LocalTransactionCoordinator ltc) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "resume", new Object[] { ltc, this });<NEW_LINE>// If there's already an LTC on this th...
Tr.exit(tc, "resume");
510,311
private <E extends Member & AnnotatedElement> void registerMetrics(Class<?> bean, E element) {<NEW_LINE>MetricResolver.Of<Counted> counted = resolver.counted(bean, element);<NEW_LINE>if (counted.isPresent()) {<NEW_LINE>registry.counter(counted.metadata(), Utils.tagsToTags(counted.tags()));<NEW_LINE>MetricID mid = new M...
(concurrentGauge.tags()));
1,675,016
public void securityCheck(Acl acl, int changeType) {<NEW_LINE>if ((SecurityContextHolder.getContext() == null) || (SecurityContextHolder.getContext().getAuthentication() == null) || !SecurityContextHolder.getContext().getAuthentication().isAuthenticated()) {<NEW_LINE>throw new AccessDeniedException("Authenticated princ...
authorityListToSet(authentication.getAuthorities());
1,699,321
public void addInterfaceElements(Interface interfaze) {<NEW_LINE>Method method = new Method(introspectedTable.getInsertStatementId());<NEW_LINE>method.setReturnType(FullyQualifiedJavaType.getIntInstance());<NEW_LINE>method.setVisibility(JavaVisibility.PUBLIC);<NEW_LINE>method.setAbstract(true);<NEW_LINE>FullyQualifiedJ...
new Parameter(parameterType, "row"));
922,579
private static void updateJDBCResourcesAndPools(Resources resources, ServerInterface mejb) {<NEW_LINE>HashMap serverPools = getServerConnectionPools(mejb, WizardConstants.__GetJdbcConnectionPool);<NEW_LINE>HashMap serverDatasources = getServerResources(mejb, WizardConstants.__GetJdbcResource);<NEW_LINE>JdbcConnectionPo...
updateExternalResource(serverJdbcResources, newPoolName, mejb);
307,481
private void scanFile(IJavaProject project, DocumentDescriptor updatedDoc, String content) throws Exception {<NEW_LINE>ASTParser parser = createParser(project, false);<NEW_LINE>String docURI = updatedDoc.getDocURI();<NEW_LINE>long lastModified = updatedDoc.getLastModified();<NEW_LINE>if (content == null) {<NEW_LINE>Pat...
file = UriUtil.toFileString(docURI);
422,531
protected static ClasspathImportServiceCompileTime makeClasspathImportService(Configuration configuration) {<NEW_LINE>TimeAbacus timeAbacus = TimeAbacusFactory.make(configuration.getCommon().getTimeSource().getTimeUnit());<NEW_LINE>ConfigurationCompilerExpression expression = configuration.getCompiler().getExpression()...
config.getName(), config);
187,063
final GetConnectorDefinitionVersionResult executeGetConnectorDefinitionVersion(GetConnectorDefinitionVersionRequest getConnectorDefinitionVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getConnectorDefinitionVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,455,206
private static <T> LoadResult<T> validateLoadedPlugins(final LoadResult<T> result) {<NEW_LINE>// Load all plugins<NEW_LINE>final HashSet<Long> guids = new HashSet<>();<NEW_LINE>final ArrayList<Pair<com.google.security.zynamics.binnavi.api2.plugins.IPlugin<T>, PluginStatus>> validatedPlugins = new ArrayList<>();<NEW_LIN...
long guid = plugin.getGuid();
154,788
public HttpResponse serviceStatusPage(ApplicationId applicationId, String hostName, String serviceName, String pathSuffix) {<NEW_LINE>// WARNING: pathSuffix may be given by the external user. Make sure no security issues arise...<NEW_LINE>// We should be OK here, because at most, pathSuffix may change the parent path, ...
hostName, serviceName, pathPrefix + pathSuffix);
539,828
private static void tryAssertion2StreamRangeCoercion(RegressionEnvironment env, AtomicInteger milestone, String epl, boolean isHasRangeReversal) {<NEW_LINE>env.compileDeployAddListenerMile(epl, "s0", milestone.getAndIncrement());<NEW_LINE>env.sendEventBean(new SupportBean_ST0("ST01", 10L));<NEW_LINE>env.sendEventBean(n...
new SupportBean_ST1("ST1_3", 13L));
107,012
// @Override<NEW_LINE>public VirtualMachineImpl withNewPrimaryPublicIPAddress(String leafDnsLabel, DeleteOptions deleteOptions) {<NEW_LINE>PublicIpAddress.DefinitionStages.WithGroup definitionWithGroup = this.networkManager.publicIpAddresses().define(this.namer.getRandomName("pip", 15)).withRegion(this.regionName());<N...
creatablePrimaryNetworkInterfaceKey = this.addDependency(nicCreatable);
1,087,883
public synchronized void addProjectOpenListener(IDEProject.OpenListener listener) {<NEW_LINE>if (ideProjectOpenListeners == null) {<NEW_LINE>ideProjectOpenListeners = new LinkedList<Reference<IDEProject.OpenListener>>();<NEW_LINE>} else {<NEW_LINE>Iterator<Reference<IDEProject.OpenListener>> it = ideProjectOpenListener...
getDefault().addPropertyChangeListener(projectOpenListener);
1,233,890
public int doRefresh() {<NEW_LINE>int numberNew = 0;<NEW_LINE>try {<NEW_LINE>twitter = Utils.getTwitter(context, DrawerActivity.settings);<NEW_LINE>long[] lastId = FavoriteTweetsDataSource.getInstance(context).getLastIds(currentAccount);<NEW_LINE>final List<Status> statuses = new ArrayList<Status>();<NEW_LINE>boolean f...
getFavorites(settings.myScreenName, paging);
155,624
private void configureSockJsOptionsIfAny(WebSocketHandlerRegistration registration) {<NEW_LINE>if (this.sockJsServiceOptions != null) {<NEW_LINE>SockJsServiceRegistration sockJsServiceRegistration = registration.withSockJS();<NEW_LINE>JavaUtils.INSTANCE.acceptIfCondition(this.sockJsServiceOptions.taskScheduler == null,...
sockJsServiceOptions.suppressCors, sockJsServiceRegistration::setSupressCors);
1,781,282
private void populateCurrentPrices() {<NEW_LINE>Locale locale = new Locale("en", "US");<NEW_LINE>long mySatoshisTraded;<NEW_LINE>if (_tradeSession.isBuyer) {<NEW_LINE>mySatoshisTraded = _tradeSession.satoshisForBuyer;<NEW_LINE>} else {<NEW_LINE>mySatoshisTraded = _tradeSession.satoshisFromSeller;<NEW_LINE>}<NEW_LINE>//...
myCurrentPay)).setText(fiatAmountString);
1,048,345
private void importMessages(TokensAndUrlAuthData authData, IdempotentImportExecutor idempotentExecutor, Collection<MailMessageModel> messages) throws Exception {<NEW_LINE>for (MailMessageModel mailMessageModel : messages) {<NEW_LINE>// Trim the full mail message to try to give some context to the user but not overwhelm...
importedLabelId = idempotentExecutor.getCachedValue(exportedLabelIdOrName);
1,411,731
public Service convertFromSObject(SService input, Service result, DatabaseSession session) throws BimserverDatabaseException {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>result.setName(input.getName());<NEW_LINE>result.setServiceName(input.getServiceName());<NEW_LINE>result.setServiceIdenti...
setToken(input.getToken());
1,292,270
void convertW(Homography2D_F64 w, CameraPinhole c) {<NEW_LINE>// inv(w) = K*K'<NEW_LINE>tmp.setTo(w);<NEW_LINE>CommonOps_DDF3.divide(tmp, tmp.a33);<NEW_LINE>CommonOps_DDF3.cholU(tmp);<NEW_LINE>CommonOps_DDF3.invert(tmp, K);<NEW_LINE>CommonOps_DDF3.divide(K, K.a33);<NEW_LINE>c.fx = K.a11;<NEW_LINE>c.fy = knownAspectRati...
= zeroSkew ? 0 : K.a12;
82,648
private void finishSnapshotStateCommit(long batchId, SnapshotState snapshotState) {<NEW_LINE>Set<Integer> statefulTasks = new HashSet<>();<NEW_LINE>statefulTasks.addAll(snapshotState.getSpoutTasks());<NEW_LINE>TopoMasterCtrlEvent resp = null;<NEW_LINE>boolean isCommitSuccess = false;<NEW_LINE>if (batchId != Transaction...
addAll(snapshotState.getStatefulTasks());
571,732
private Condition createPredicateComposite(@Nullable DbColumn theSourceJoinColumn, String theResourceName, String theSpnamePrefix, RuntimeSearchParam theParamDef, List<? extends IQueryParameterType> theNextAnd, RequestPartitionId theRequestPartitionId, SearchQueryBuilder theSqlBuilder) {<NEW_LINE>Condition orCondidtion...
CompositeParam<?, ?>) next;
1,475,639
private static void buildFileForCompliance(String file, int length, String[] tokens) {<NEW_LINE>byte[] result = new byte[length * 8];<NEW_LINE>for (int i = 0; i < tokens.length; i = i + 3) {<NEW_LINE>if ("2".equals(tokens[i])) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>int index = Integer.parseInt(tokens[i + 1]);<NEW_LINE>Stri...
] = (byte) (compliance);
180,331
public void layout(Widget widget) {<NEW_LINE>List<Widget> children = widget.getChildren();<NEW_LINE>int y = 0;<NEW_LINE>for (int i = 0; i < children.size(); i += columnCount) {<NEW_LINE>int rowHeight = 0;<NEW_LINE>for (int j = 0; j < columnCount; j++) {<NEW_LINE>Widget w = <MASK><NEW_LINE>Rectangle b = w.getPreferredBo...
children.get(i + j);
88,731
final SendInvitationResult executeSendInvitation(SendInvitationRequest sendInvitationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendInvitationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,772,478
public Change createChange(IProgressMonitor monitor) throws CoreException, OperationCanceledException {<NEW_LINE>Assert.isNotNull(monitor);<NEW_LINE>try {<NEW_LINE>Change change = fChange;<NEW_LINE>if (change != null) {<NEW_LINE>String project = null;<NEW_LINE>IJavaProject javaProject = fTypeParameter.getJavaProject();...
(fTypeParameter.getElementName()));
922,517
public Map<String, String> mergeInto(Map<String, String> core) {<NEW_LINE>if (extra.size() == 0)<NEW_LINE>// no supplemental descriptions<NEW_LINE>return core;<NEW_LINE>if (core == null || core.size() == 0)<NEW_LINE>// only core descriptions<NEW_LINE>return extra;<NEW_LINE>switch(resolve) {<NEW_LINE>case FAIL_FAST:<NEW...
() + extra.size();
998,409
private void updateFormattingTextWatcher() {<NEW_LINE>if (editText_registeredCarrierNumber != null && selectedCCPCountry != null) {<NEW_LINE>String enteredValue = getEditText_registeredCarrierNumber().getText().toString();<NEW_LINE>String digitsValue = PhoneNumberUtil.normalizeDigitsOnly(enteredValue);<NEW_LINE>if (for...
v(TAG, "updateFormattingTextWatcher: EditText not registered " + selectionMemoryTag);
1,847,330
protected String doIt() throws Exception {<NEW_LINE>final WarehouseId warehouseId = getWarehouseId();<NEW_LINE>final IStorageEngine storageEngine = storageEngineService.getStorageEngine();<NEW_LINE>final IStorageQuery storageQuery = storageEngine.newStorageQuery();<NEW_LINE>storageQuery.addWarehouseId(warehouseId);<NEW...
": " + candidate.getNotValidReasons());
337,313
public Snippet[] format(Passage[] passages, String content) {<NEW_LINE>Snippet[] snippets = new Snippet[passages.length];<NEW_LINE>int pos;<NEW_LINE>for (int j = 0; j < passages.length; j++) {<NEW_LINE>Passage passage = passages[j];<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>pos = passage.getStartOffset(...
sb.length() - 1);
1,107,502
protected FaceletHandler doCompileComponent(String taglibURI, String tagName, Map<String, Object> attributes) {<NEW_LINE>String alias = tagName;<NEW_LINE>CompilationManager mngr = new CompilationManager(alias, this, getDefaultFaceletsProcessingInstructions());<NEW_LINE>// The prefix is only a logical name.<NEW_LINE>Str...
getValue()).getExpressionString();
197,540
public static void main(String[] args) throws IOException, ParseException {<NEW_LINE>Exchange coinbaseExchange = ExchangeFactory.INSTANCE.createExchange(CoinbaseExchange.class);<NEW_LINE>CoinbaseMarketDataService marketDataService = (CoinbaseMarketDataService) coinbaseExchange.getMarketDataService();<NEW_LINE>List<Coin...
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
440,501
protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException {<NEW_LINE>if (input != null) {<NEW_LINE>bOut.write(input, inputOffset, inputLen);<NEW_LINE>}<NEW_LINE>if (cipher instanceof RSABlindedEngine) {<NEW_LINE>if (bOut.size() > cipher.getInputBlo...
bytes, 0, bytes.length);
204,293
private void writeAreaPlot(JRAreaPlot plot, String chartName) {<NEW_LINE>if (plot != null) {<NEW_LINE>String plotName = chartName + "AreaPlot";<NEW_LINE>write("JRDesignAreaPlot " + plotName + " = (JRDesignAreaPlot)" + chartName + ".getPlot();\n");<NEW_LINE>writePlot(plot, plotName);<NEW_LINE>writeExpression(plot.getCat...
plot.getOwnCategoryAxisLineColor(), plotName);
838,029
// Suppress high Cognitive Complexity warning<NEW_LINE>@SuppressWarnings("squid:S3776")<NEW_LINE>private static void aggregateFromReader(IAggregateReader seriesReader, List<AggregateResult> aggregateResultList) throws QueryProcessException, IOException {<NEW_LINE>int remainingToCalculate = aggregateResultList.size();<N...
Statistics fileStatistics = seriesReader.currentFileStatistics();
713,854
public void execute(AdminCommandContext context) {<NEW_LINE>ActionReport actionReport = context.getActionReport();<NEW_LINE>ActionReport restMonitoringReport = actionReport.addSubActionsReport();<NEW_LINE>Config config = targetUtil.getConfig(target);<NEW_LINE>if (config == null) {<NEW_LINE>actionReport.setMessage("No s...
setMessage(columnFormatter.toString());
665,863
public SimpleEmailPart unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SimpleEmailPart simpleEmailPart = new SimpleEmailPart();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
int originalDepth = context.getCurrentDepth();
1,687,585
private static void startAppservers() throws Exception {<NEW_LINE>server.setServerConfigurationFile("JMSContext_ssl.xml");<NEW_LINE>server1.setServerConfigurationFile("TestServer1_ssl.xml");<NEW_LINE>server.startServer("JMSContextTest_118068_Client.log");<NEW_LINE>server1.startServer("JMSContextTest_118068_Server.log")...
"Server message " + messageId + " not found", waitFor);
868,064
private static void updateProjectSettings(Project project, BlazeProjectData blazeProjectData) {<NEW_LINE>KotlinToolchainIdeInfo kotlinToolchainIdeInfo = findToolchain(blazeProjectData.getTargetMap());<NEW_LINE>if (kotlinToolchainIdeInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LanguageVersion languageLevel = get...
>(kotlinToolchainIdeInfo.getKotlinCompilerCommonFlags());
411,056
private static void exportEnvelopeToJson(Envelope env, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) {<NEW_LINE>boolean bExportZs = <MASK><NEW_LINE>boolean bExportMs = env.hasAttribute(Semantics.M);<NEW_LINE>boolean bPositionAsF = false;<NEW_LINE>int decimals = 17;<NEW_...
env.hasAttribute(Semantics.Z);
1,023,628
public List<StreamEntry> build(Object data) {<NEW_LINE>if (null == data) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<ArrayList<Object>> objectList = (List<ArrayList<Object>>) data;<NEW_LINE>List<StreamEntry> responses = new ArrayList<>(objectList.size() / 2);<NEW_LINE>if (objectList.isEmpty()) {<NEW_LINE>return re...
StreamEntryID entryID = new StreamEntryID(entryIdString);
1,035,840
private void addOrReplaceDistributionDetail(@NonNull final Candidate candidate, @NonNull final I_MD_Candidate synchedRecord) {<NEW_LINE>final DistributionDetail distributionDetail = DistributionDetail.castOrNull(candidate.getBusinessCaseDetail());<NEW_LINE>if (distributionDetail == null) {<NEW_LINE>return;<NEW_LINE>}<N...
getPickDirectlyIfFeasible().isTrue());
881,023
private static void write_package_keepout(app.freerouting.library.Package.Keepout p_keepout, WriteScopeParameter p_par, boolean p_is_via_keepout) throws java.io.IOException {<NEW_LINE>Layer keepout_layer;<NEW_LINE>if (p_keepout.layer >= 0) {<NEW_LINE>app.freerouting.board.Layer board_layer = p_par.board.layer_structure...
geometry.planar.Shape[] holes;
456,402
public UpdateGameSessionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateGameSessionResult updateGameSessionResult = new UpdateGameSessionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
JsonToken token = context.getCurrentToken();
1,704,386
public final static int ycbcr_to_rgb24(int y, int cb, int cr) {<NEW_LINE>y = y << SCALEBITS;<NEW_LINE>cb = cb - 128;<NEW_LINE>cr = cr - 128;<NEW_LINE>int add_r = FIX_1_402 * cr + ONE_HALF;<NEW_LINE>int add_g = _FIX_0_34414 * cb - FIX_0_71414 * cr + ONE_HALF;<NEW_LINE>int add_b = FIX_1_772 * cb + ONE_HALF;<NEW_LINE>int ...
(y + add_g) >> SCALEBITS;
852,562
private List<Wo> listLike(Business business, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>if (StringUtils.isEmpty(wi.getKey())) {<NEW_LINE>return wos;<NEW_LINE>}<NEW_LINE>String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey()));<NEW_LINE>EntityManager em = business....
cb.createQuery(String.class);
412,579
public static void sendQRCode(final Activity activity, String encodeType, Bundle encodeData, String strEncodeData) {<NEW_LINE>Intent intent = new Intent();<NEW_LINE>intent.addCategory(Intent.CATEGORY_DEFAULT);<NEW_LINE>intent.setAction(ZXING_BARCODE_SCANNER_ACTIVITY);<NEW_LINE>intent.putExtra("ENCODE_TYPE", encodeType)...
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
1,650,688
public // }<NEW_LINE>void exportXMLData(ExportDataDumper eDD, String indent) {<NEW_LINE>// NOI18N<NEW_LINE>String newline = System.getProperty("line.separator");<NEW_LINE>// NOI18N<NEW_LINE>StringBuffer result = new StringBuffer(indent + "<node>" + newline);<NEW_LINE>// NOI18N<NEW_LINE>result.append(indent).append(" <N...
("</Invocations>").append(newline);
361,555
final AssociateThirdPartyFirewallResult executeAssociateThirdPartyFirewall(AssociateThirdPartyFirewallRequest associateThirdPartyFirewallRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateThirdPartyFirewallRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
879,920
private boolean scopeStatement() {<NEW_LINE>boolean hasReturn = false;<NEW_LINE><MASK><NEW_LINE>this.scope.newLexicalScope = true;<NEW_LINE>// prepare to call __if_callcc(result, statements)<NEW_LINE>getCodeGeneratorWithTimes().onMethodName(Constants.IfReturnFn);<NEW_LINE>// Create a lambda to wrap the scope body.<NEW_...
boolean newLexicalScope = this.scope.newLexicalScope;
1,760,885
public ComponentIdentifier read(Decoder decoder) throws IOException {<NEW_LINE>byte id = decoder.readByte();<NEW_LINE>if (Implementation.ROOT_PROJECT.getId() == id) {<NEW_LINE>BuildIdentifier buildIdentifier = buildIdentifierSerializer.read(decoder);<NEW_LINE>String projectName = decoder.readString();<NEW_LINE>return n...
), decoder.readString());
1,032,054
protected void ensureKnown(Address min, Address max) {<NEW_LINE>if (minAddress == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>max = cmin(max, maxAddress);<NEW_LINE>if (known.contains(min, max)) {<NEW_LINE>// hits++;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// misses++;<NEW_LINE>AddressRangeIterator rangesB...
min = cmax(min, minAddress);
613,110
public String rmaLine(final ICalloutField calloutField) {<NEW_LINE>final I_M_InOutLine inoutLine = calloutField.getModel(I_M_InOutLine.class);<NEW_LINE>final int M_RMALine_id = inoutLine.getM_RMALine_ID();<NEW_LINE>if (M_RMALine_id <= 0) {<NEW_LINE>return NO_ERROR;<NEW_LINE>}<NEW_LINE>// Get Details<NEW_LINE>final I_M_...
-1 : originalInOutLine.getM_Product_ID();
1,070,657
private static void decode7(DataInput in, long[] tmp, long[] longs) throws IOException {<NEW_LINE>in.<MASK><NEW_LINE>shiftLongs(tmp, 14, longs, 0, 1, MASK8_7);<NEW_LINE>shiftLongs(tmp, 14, tmp, 0, 0, MASK8_1);<NEW_LINE>for (int iter = 0, tmpIdx = 0, longsIdx = 14; iter < 2; ++iter, tmpIdx += 7, longsIdx += 1) {<NEW_LIN...
readLongs(tmp, 0, 14);
266,496
public void run() {<NEW_LINE>final Runtime runtime = Runtime.getRuntime();<NEW_LINE>final NumberFormat format = NumberFormat.getInstance();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("CHAN TOT:").append(mChannelCount);<NEW_LINE>sb.append(" TRFC:").append(mTrafficChannelCount);<NEW_LINE>sb.appen...
long freeMemory = runtime.freeMemory();
1,827,528
public final void accept(Context<?> ctx) {<NEW_LINE>if (EMULATE_WITH_RECURSIVE.contains(ctx.dialect())) {<NEW_LINE>Field<Integer> f = DSL.field(name, INTEGER);<NEW_LINE>visitSubquery(ctx, withRecursive(name, name).as(select(from).unionAll(select(iadd(f, step == null ? inline(1) : step)).from(name).where(f.lt(to)))).sel...
(to).sql(')');
208,977
public SIUncoordinatedTransaction createUncoordinatedTransaction(boolean allowSubordinates) throws SIIncorrectCallException, SIConnectionUnavailableException, SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, "createUncoordinatedTransa...
(_delegateConnection.createUncoordinatedTransaction(allowSubordinates));
441,213
public static String encryptPassword(String password, String enc_id, String enc_pub_key) {<NEW_LINE>byte[] rand_key = new byte[32], iv = new byte[12];<NEW_LINE>SecureRandom sran = new SecureRandom();<NEW_LINE>sran.nextBytes(rand_key);<NEW_LINE>sran.nextBytes(iv);<NEW_LINE>String time = String.valueOf(System.currentTime...
doFinal(password.getBytes());
184,326
public static TypeSpecDataHolder generateIsMountSizeDependent(MountSpecModel specModel) {<NEW_LINE>TypeSpecDataHolder.<MASK><NEW_LINE>final SpecMethodModel<DelegateMethod, Void> onMount = SpecModelUtils.getMethodModelWithAnnotation(specModel, OnMount.class);<NEW_LINE>if (onMount == null) {<NEW_LINE>return dataHolder.bu...
Builder dataHolder = TypeSpecDataHolder.newBuilder();
12,577
public void render(MapView map, MapCanvas canvas, Player player) {<NEW_LINE>World world = map.getWorld();<NEW_LINE>int scaleShift = map.getScale().getValue();<NEW_LINE>Location playerLoc = player.getLocation();<NEW_LINE>int playerX = playerLoc.getBlockX();<NEW_LINE>int playerZ = playerLoc.getBlockZ();<NEW_LINE>int corn...
, worldZ), worldX, worldZ);
684,936
public static DOMNode create(org.openide.nodes.Node node) {<NEW_LINE>String idValue = tryGetID(node);<NEW_LINE>if (idValue != null) {<NEW_LINE>DOMNode dn = new DOMNode(idValue);<NEW_LINE>if (LOG.isLoggable(Level.FINE)) {<NEW_LINE>LOG.fine("new DOMNode(" + idValue + ") created from " + node);<NEW_LINE>}<NEW_LINE>return ...
childNumber = children.indexOf(node);
1,656,848
public void run() {<NEW_LINE>// set valid hour & minutes<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {<NEW_LINE>view.setHour(hourOfDay);<NEW_LINE>view.setMinute(correctedMinutes);<NEW_LINE>} else {<NEW_LINE>view.setCurrentHour(hourOfDay);<NEW_LINE>// we need to set minutes to 0 for this to work on olde...
Log.e("RN-datetimepicker", "could not set selection on time picker, this is a known issue on some Huawei devices");
407,546
private Pair<Boolean, Metadata_V4.MetadataSummary> checkMetadataForScanStats(PlannerSettings settings, DrillTable drillTable, FormatSelection formatSelection) {<NEW_LINE>// Currently only support metadata rowcount stats for Parquet tables<NEW_LINE>FormatPluginConfig formatConfig = formatSelection.getFormat();<NEW_LINE>...
logger.warn("Unable to create the file system object for retrieving statistics from metadata cache file ", e);
1,773,560
public final Compilation compile(Iterable<? extends JavaFileObject> files) {<NEW_LINE>DiagnosticCollector<JavaFileObject> diagnosticCollector = new DiagnosticCollector<>();<NEW_LINE>InMemoryJavaFileManager fileManager = new InMemoryJavaFileManager(javaCompiler().getStandardFileManager(diagnosticCollector, Locale.getDef...
boolean succeeded = task.call();
270,595
public void marshall(VulnerablePackage vulnerablePackage, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (vulnerablePackage == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(vulnerablePackage.getArch(), ARCH...
e.getMessage(), e);
1,120,150
private Paint createPaint() {<NEW_LINE>Paint paint = new Paint();<NEW_LINE>paint.setAntiAlias(true);<NEW_LINE>paint.setStyle(this.paintStyle);<NEW_LINE>paint.setStrokeWidth(this.paintStrokeWidth);<NEW_LINE>paint.setStrokeCap(this.lineCap);<NEW_LINE>// fixed<NEW_LINE>paint.setStrokeJoin(Paint.Join.MITER);<NEW_LINE>// fo...
0, 0, 0, 0);
1,106,246
public List<TransferItem> list(final Session<?> session, final Path directory, final Local local, final ListProgressListener listener) throws BackgroundException {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String<MASK><NEW_LINE>}<NEW_LINE>if (directory.isSymbolicLink() && new DownloadSymlinkResolver(roots...
.format("List children for %s", directory));
312,885
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
invoke(request, responseHandler, executionContext);
784,652
public NetworkFirewallMissingFirewallViolation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NetworkFirewallMissingFirewallViolation networkFirewallMissingFirewallViolation = new NetworkFirewallMissingFirewallViolation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String ...
JsonToken token = context.getCurrentToken();
682,098
public void onHandlerDisposed(RSocketBrokerResponderHandler responderHandler) {<NEW_LINE>AppMetadata appMetadata = responderHandler.getAppMetadata();<NEW_LINE>responderHandlers.remove(responderHandler.getUuid());<NEW_LINE>connectionHandlers.<MASK><NEW_LINE>appHandlers.remove(appMetadata.getName(), responderHandler);<NE...
remove(responderHandler.getId());
858,836
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>SupportQueryPlanIndexHook.reset();<NEW_LINE>env.compileDeploy("@public @buseventtype create schema Geofence(x double, y double, vin string)", path);<NEW_LINE>env.compileDeploy("@public create table Regions(regionI...
.assertOnExprTableAndReset("RectangleIndex", "non-unique hash={} btree={} advanced={mxcifquadtree(rx,ry,rwidth,rheight)}"));
1,637,576
private STNode parseByteArrayLiteral(STNode typeKeyword, STNode startingBackTick, STNode byteArrayContent) {<NEW_LINE>STNode content = STNodeFactory.createEmptyNode();<NEW_LINE>STNode newStartingBackTick = startingBackTick;<NEW_LINE>STNodeList items = (STNodeList) byteArrayContent;<NEW_LINE>if (items.size() == 1) {<NEW...
SyntaxErrors.cloneWithTrailingInvalidNodeMinutiae(clonedStartingBackTick, item);
601,236
public void handleDBKeysByOrderQuery(ChannelHandlerContext ctx, WebSocketFrame frame, JSONObject jso) {<NEW_LINE>String table = jso.getJSONObject("query").getString("table");<NEW_LINE>String limit = jso.getJSONObject("query").getString("limit");<NEW_LINE>String offset = jso.getJSONObject("query").getString("offset");<N...
jso.getString("dbkeysbyorder") : "";
883,423
public B instantiate(boolean strictNullable, Object... arguments) throws InstantiationException {<NEW_LINE>ArgumentUtils.requireNonNull("arguments", arguments);<NEW_LINE>if (arguments.length == 0) {<NEW_LINE>return instantiate();<NEW_LINE>}<NEW_LINE>final Argument<?>[] constructorArguments = getConstructorArguments();<...
constructorArgument.getName() + "]. If this argument is allowed to be null annotate it with @Nullable");
1,156,537
private static Executable storeAllWorldNames(Collection<FinishedSession> sessions, Set<World> existingWorlds) {<NEW_LINE>Set<World> worlds = sessions.stream().flatMap(session -> {<NEW_LINE>ServerUUID serverUUID = session.getServerUUID();<NEW_LINE>return session.getExtraData(WorldTimes.class).map(WorldTimes::getWorldTim...
new World(worldName, serverUUID));
912,426
public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>MapPack p = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>param.put("resource", resource);<NEW_LINE>p = (MapPack) tcp.getSingle(RequestCmd.OBJECT_CHECK_RESOURCE_FILE, para...
[] { "*.jar", "*.*" });
95,014
public static MimePath parse(String path) {<NEW_LINE>// NOI18N<NEW_LINE>assert path != null : "path cannot be null";<NEW_LINE>synchronized (string2mimePath) {<NEW_LINE>Reference<MimePath> mpRef = string2mimePath.get(path);<NEW_LINE>MimePath mimePath = mpRef != null ? mpRef.get() : null;<NEW_LINE>if (mimePath != null) {...
o = parseImpl(path, false);
1,402,477
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String publicIpPrefixName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
94,941
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next(...
setLatitude(parser.nextDouble());
520,367
public void onMessageBatch(List<org.springframework.amqp.core.Message> messages, Channel channel) {<NEW_LINE>Message<?> converted;<NEW_LINE>if (this.converterAdapter.isAmqpMessageList()) {<NEW_LINE>converted = new GenericMessage<>(messages);<NEW_LINE>} else {<NEW_LINE>List<Message<?>> messagingMessages = new ArrayList<...
= new GenericMessage<>(payloads);
1,130,494
public static ExecutionPlanDescription.ProfilerStatistics fromMapValue(MapValue mapValue) {<NEW_LINE>long dbHits = 0, rows = 0, pageCacheHits = 0, pageCacheMisses = 0, time = 0;<NEW_LINE>double pageCacheRatio = 0;<NEW_LINE>if (mapValue.containsKey("dbHits")) {<NEW_LINE>dbHits = ((LongValue) mapValue.get("dbHits")).valu...
("pageCacheHits")).value();
236,802
public SearchCostResult isCheapEnoughToSearch(@Nonnull String name, @Nonnull final GlobalSearchScope scope, @Nullable final PsiFile fileToIgnoreOccurrencesIn, @Nullable final ProgressIndicator progress) {<NEW_LINE>final AtomicInteger count = new AtomicInteger();<NEW_LINE>final ProgressIndicator indicator = progress == ...
keys = getWordEntries(name, true);
1,350,355
public static MinMax findMinMax(List<Integer> A) {<NEW_LINE>if (A.size() <= 1) {<NEW_LINE>return new MinMax(A.get(0), A.get(0));<NEW_LINE>}<NEW_LINE>MinMax globalMinMax = MinMax.minMax(A.get(0), A.get(1));<NEW_LINE>// Process two elements at a time.<NEW_LINE>for (int i = 2; i + 1 < A.size(); i += 2) {<NEW_LINE>MinMax l...
.largest, localMinMax.largest));
453,612
private final void keepAlive(InstancePingPkg request) {<NEW_LINE>final long timeBucket = TimeBucket.getTimeBucket(System.<MASK><NEW_LINE>final String serviceName = namingLengthControl.formatServiceName(request.getService());<NEW_LINE>final String instanceName = namingLengthControl.formatInstanceName(request.getServiceI...
currentTimeMillis(), DownSampling.Minute);
1,022,523
static MappingModel build(TypeDefinitionRegistry registry, ProcessingContext context) {<NEW_LINE>Optional<ObjectTypeDefinition> maybeQueryType = getOperationType(registry, "query", "Query");<NEW_LINE>Optional<ObjectTypeDefinition> maybeMutationType = getOperationType(registry, "mutation", "Mutation");<NEW_LINE>Optional...
null, ProcessingErrorType.InvalidSyntax, "A schema MUST have a 'query' operation defined");
1,097,946
private void fillInConnectionProperties(Connection connection, EntityDetail entity, List<Relationship> relationships, String methodName) throws PropertyServerException {<NEW_LINE>this.setUpElementHeader(connection, entity, OpenMetadataAPIMapper.CONNECTION_TYPE_NAME, methodName);<NEW_LINE>InstanceProperties instanceProp...
(this.removeClearPassword(instanceProperties));
14,437
public EList<Widget> renderWidget(Widget w, StringBuilder sb) throws RenderException {<NEW_LINE>Image image = (Image) w;<NEW_LINE>String snippet = (image.getChildren().size() > 0) ? getSnippet("image_link") : getSnippet("image");<NEW_LINE>if (image.getRefresh() > 0) {<NEW_LINE>snippet = StringUtils.replace(snippet, "%r...
state = itemUIRegistry.getState(w);
1,810,287
public static boolean evaluateJsonExpression(JsonNode contextNode, String attributeExpression) throws JRException {<NEW_LINE>if (attributeExpression == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String attribute = null;<NEW_LINE>JsonOperatorEnum operator = null;<NEW_LINE>String value = null;<NEW_LINE>boolean res...
length()).trim();
68,276
public void fullRedraw() {<NEW_LINE>setupCanvas();<NEW_LINE>final StyleLibrary style = context.getStyleLibrary();<NEW_LINE>int projdim = BitsUtil.cardinality(proj.getVisibleDimensions2D());<NEW_LINE>ColorLibrary colors = style.getColorSet(StyleLibrary.PLOT);<NEW_LINE>if (tree != null) {<NEW_LINE>E root = tree.getRootEn...
0.1 / (projdim - 1));
1,342,058
protected static void parseSwitchParam(IParam param, int i, String[] fkNames, Object[] codes, Expression[] exps, Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("switch" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isL...
MessageManager mm = EngineMessage.get();
894,594
public void select(List<String> clientProtocols) {<NEW_LINE>SSLEngine sslEngine = getSSLEngine();<NEW_LINE>List<String> serverProtocols = getProtocols();<NEW_LINE>SSLSession sslSession = sslEngine.getHandshakeSession();<NEW_LINE>if (sslSession == null)<NEW_LINE>sslSession = sslEngine.getSession();<NEW_LINE>String tlsPr...
getConnector().getConnectionFactory(serverProtocol);
605,333
protected String doIt() throws Exception {<NEW_LINE>org.compiere.cm.CacheHandler thisHandler = new org.compiere.cm.CacheHandler(org.compiere.cm.CacheHandler.convertJNPURLToCacheURL(getCtx().getProperty("java.naming.provider.url")), log, getCtx(), get_TrxName());<NEW_LINE>log.info("CM_WebProject_ID=" + p_CM_WebProject_I...
throw new AdempiereUserError("@NotFound@ @CM_WebProject_ID@ " + p_CM_WebProject_ID);
689,339
protected <RESULT extends LabelType> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {<NEW_LINE>try {<NEW_LINE>final RESULT result = entityType.newInstance();<NEW_LINE>result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy")));<NEW_LINE>result.setCreatedTime(DfTypeUtil.toLong(...
source.get("createdTime")));
1,230,201
public void release(long vmId, long hostId) {<NEW_LINE>List<VolumeVO> volumesForVm = _volsDao.findUsableVolumesForInstance(vmId);<NEW_LINE>if (volumesForVm == null || volumesForVm.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (s_logger.isDebugEnabled()) {<NEW_LINE>s_logger.debug("Releasing " + volumesForVm.size(...
revokeAccess(volumeInfo, host, dataStore);