idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,350,834
List<String> listEditable(Business business, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Portal.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LINE>Root<Portal>...
Predicate p = cb.conjunction();
1,716,173
public static boolean deployV2Contract(FiscoConfig fiscoConfig) throws BrokerException {<NEW_LINE>BcosSDK <MASK><NEW_LINE>Map<Integer, Client> groups = new HashMap<>();<NEW_LINE>// 1 is always exist<NEW_LINE>Integer defaultGroup = Integer.parseInt(WeEvent.DEFAULT_GROUP_ID);<NEW_LINE>Client defaultClient = Web3SDKConnec...
sdk = Web3SDKConnector.buidBcosSDK(fiscoConfig);
1,307,793
public static void writePNG(ImageWriter writer, IIOMetadata iioMetadata, ImageWriteParam params, String[] desc, BufferedImage img) throws IOException {<NEW_LINE>// https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/imageio/metadata/doc-files/png_metadata.html<NEW_LINE>// Metadata is mutable, we can j...
IIOMetadataNode root = new IIOMetadataNode("javax_imageio_png_1.0");
883,798
private Tag trimNSAttributes(Tag tag) {<NEW_LINE>TagAttribute[] attr = tag.getAttributes().getAll();<NEW_LINE>int remove = 0;<NEW_LINE>for (int i = 0; i < attr.length; i++) {<NEW_LINE>if (attr[i].getQName().startsWith("xmlns") && this.tagLibrary.containsNamespace(attr[i].getValue())) {<NEW_LINE>remove |= 1 << i;<NEW_LI...
[attrList.size()]);
1,802,009
public void register(@NotNull final IHub hub, @NotNull final SentryOptions options) {<NEW_LINE>Objects.requireNonNull(hub, "Hub is required");<NEW_LINE>this.options = Objects.requireNonNull((options instanceof SentryAndroidOptions) ? (SentryAndroidOptions) options : null, "SentryAndroidOptions is required");<NEW_LINE>t...
SentryLevel.ERROR, "Failed to initialize SystemEventsBreadcrumbsIntegration.", e);
29,446
private OffloadIndexBlockV2 fromStream(DataInputStream dis) throws IOException {<NEW_LINE>// no used index block length<NEW_LINE>dis.readInt();<NEW_LINE>this.dataObjectLength = dis.readLong();<NEW_LINE>this.dataHeaderLength = dis.readLong();<NEW_LINE>while (dis.available() > 0) {<NEW_LINE>long ledgerId = dis.readLong()...
final LedgerInfo ledgerInfo = parseLedgerInfo(metadataBytes);
537,820
public void drawImage(PDImage pdImage) throws IOException {<NEW_LINE>Matrix ctm = getGraphicsState().getCurrentTransformationMatrix();<NEW_LINE><MASK><NEW_LINE>if (!pdImage.getInterpolate()) {<NEW_LINE>boolean isScaledUp = pdImage.getWidth() < Math.round(at.getScaleX()) || pdImage.getHeight() < Math.round(at.getScaleY(...
AffineTransform at = ctm.createAffineTransform();
314,399
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>contiuneGetSummaries_result result = new contiuneGetSummaries_result();<NEW_LINE>if (e instanceof NoSuchScanIDException) {<NEW_LINE>result.nssi = (No...
fb, msg, msgType, seqid);
28,745
final DescribeUserStackAssociationsResult executeDescribeUserStackAssociations(DescribeUserStackAssociationsRequest describeUserStackAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUserStackAssociationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
56,515
public void handleLabelsFileUpload(FileUploadEvent event) {<NEW_LINE>logger.fine("entering handleUpload method.");<NEW_LINE>UploadedFile file = event.getFile();<NEW_LINE>if (file != null) {<NEW_LINE>InputStream uploadStream = null;<NEW_LINE>try {<NEW_LINE>uploadStream = file.getInputStream();<NEW_LINE>} catch (IOExcept...
asList(file.getFileName());
1,798,624
public Socket onTransfer() {<NEW_LINE>if (server == null) {<NEW_LINE>// We're in PORT mode (not PASV)<NEW_LINE>if (remoteAddress == null || remotePort == 0) {<NEW_LINE>Log.i(TAG, "PORT mode but not initialized correctly");<NEW_LINE>clearState();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Socket socket;<NEW_LINE>try {<NE...
Log.i(TAG, "Exception accepting PASV socket");
1,070,315
private static boolean detectBuggyJDK() {<NEW_LINE>final byte[] testData = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };<NEW_LINE>// way enough space<NEW_LINE>final byte[] compressed = new byte[32];<NEW_LINE>final Deflater deflater = new Deflater(6, true);<NEW_LINE>int compressedSize;<NEW_LINE>try {<NEW_LINE>deflater.reset();...
compressed.length, Deflater.FULL_FLUSH);
1,045,798
void execute() {<NEW_LINE>int i;<NEW_LINE>for (i = 0; i != model.rulesLeft.size(); i++) {<NEW_LINE>// check for a match<NEW_LINE>String rl = model.rulesLeft.get(i);<NEW_LINE>int j;<NEW_LINE>for (j = 0; j != rl.length(); j++) {<NEW_LINE>char x = rl.charAt(j);<NEW_LINE>if (x == '0' || x == '1') {<NEW_LINE>if (pins[j].val...
highImpedance[j + inputCount] = false;
1,547,957
public List<OffsetRange> calculateOffsetRanges(long rowGroupOffset) {<NEW_LINE>List<OffsetRange> ranges = new ArrayList<>();<NEW_LINE>int pageCount = getPageCount();<NEW_LINE>if (pageCount > 0) {<NEW_LINE>long <MASK><NEW_LINE>// Add a range for the dictionary page if required<NEW_LINE>if (rowGroupOffset < firstPageOffs...
firstPageOffset = offsetIndex.getOffset(0);
394,314
// //<NEW_LINE>// MOUSE LISTENER<NEW_LINE>@Override<NEW_LINE>public void mousePressed(java.awt.event.MouseEvent e) {<NEW_LINE>ZoneRenderer renderer = <MASK><NEW_LINE>if (SwingUtilities.isLeftMouseButton(e)) {<NEW_LINE>if (renderer.getZone().getGrid().getCapabilities().isPathingSupported()) {<NEW_LINE>CellPoint cellPoin...
(ZoneRenderer) e.getSource();
300,426
private BaseBottomSheetItem createTitleItem() {<NEW_LINE>LayoutInflater themedInflater = UiUtilities.getInflater(requireContext(), nightMode);<NEW_LINE>View view = themedInflater.inflate(R.layout.settings_group_title, null);<NEW_LINE>checkBox = view.findViewById(R.id.check_box);<NEW_LINE>selectedSize = view.findViewByI...
setText(type.getTitleId());
826,492
public void onLinkPropertiesChanged(@NonNull Network network, LinkProperties linkProperties) {<NEW_LINE>// Make sure the right DNS servers are being used<NEW_LINE>List<InetAddress> dns = linkProperties.getDnsServers();<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O || !same(last_dns, dns)) {<NEW_LINE>Log.i(...
i(LOG_TAG, "ModulesBroadcastReceiver Changed link properties=" + linkProperties);
5,358
protected void writeServiceTaskAdditionalAttributes(ServiceTask element, XMLStreamWriter xtw) throws Exception {<NEW_LINE>ServiceTask serviceTask = element;<NEW_LINE>if (ImplementationType.IMPLEMENTATION_TYPE_CLASS.equals(serviceTask.getImplementationType())) {<NEW_LINE>writeQualifiedAttribute(ATTRIBUTE_TASK_SERVICE_CL...
serviceTask.getResultVariableName(), xtw);
1,768,655
public void onEntityDeath(DestructEntityEvent.Death event) {<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE>Living dead = event.getTargetEntity();<NEW_LINE>if (dead instanceof Player) {<NEW_LINE>// Process Death<NEW_LINE>SessionCache.getCachedSession(dead.getUniqueId()).ifPresent(ActiveSession::addDeath);<NE...
, dead).build());
1,596,826
public void marshall(Table table, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (table == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(table.getArn(), ARN_BINDING);<NEW_LINE>protocolMarshaller.marshall(ta...
table.getRetentionProperties(), RETENTIONPROPERTIES_BINDING);
611,154
public LiveData<Integer> updateUser(String firstName, String lastName, String auth) {<NEW_LINE>if (userUpdateResponse == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>int id = 0;<NEW_LINE>try {<NEW_LINE>id = JWTUtils.getIdentity(auth);<NEW_LINE>} catch (JSONException e) {<NEW_LINE>userUpdateResponse.setValue(FAILED);<NEW...
userUpdateResponse = new MutableLiveData<>();
322,989
public Answer createVolume(CreateObjectCommand cmd) {<NEW_LINE>LOGGER.debug("execute createVolume: " + cmd.getClass());<NEW_LINE>DataTO data = cmd.getData();<NEW_LINE>VolumeObjectTO volume = (VolumeObjectTO) data;<NEW_LINE>try {<NEW_LINE>String poolUuid = data.getDataStore().getUuid();<NEW_LINE>String storeUrl = data.g...
StoragePlugin sp = new StoragePlugin(c);
1,704,743
private ValueBlob convertToBlob(TypeInfo targetType, int conversionMode, Object column) {<NEW_LINE>ValueBlob v;<NEW_LINE>switch(getValueType()) {<NEW_LINE>case BLOB:<NEW_LINE>v = (ValueBlob) this;<NEW_LINE>break;<NEW_LINE>case CLOB:<NEW_LINE>DataHandler handler = ((ValueLob) this).lobData.getDataHandler();<NEW_LINE>if ...
(getInputStream(), -1);
1,782,045
private PagePart proceed(RenderingTask renderingTask) throws PageRenderingException {<NEW_LINE>PdfFile pdfFile = pdfView.pdfFile;<NEW_LINE>pdfFile.openPage(renderingTask.page);<NEW_LINE>int w = Math.round(renderingTask.width);<NEW_LINE>int h = Math.round(renderingTask.height);<NEW_LINE>if (w == 0 || h == 0 || pdfFile.p...
renderingTask.thumbnail, renderingTask.cacheOrder);
382,821
private void extractTestScript(String operationNameRadix, JsonNode itemNode, Operation operation, List<JsonNode> collectedScripts) {<NEW_LINE>String itemNodeName = itemNode.path("name").asText();<NEW_LINE>// Item may be a folder or an operation description.<NEW_LINE>if (!itemNode.has("request")) {<NEW_LINE>// Item is s...
operationName, operation.getName());
33,201
protected OAuthRequest createAccessTokenRequest(AccessTokenRequestParams params) {<NEW_LINE>final OAuthRequest request = new OAuthRequest(getApi().getAccessTokenVerb(), getApi().getAccessTokenEndpoint());<NEW_LINE>getApi().getClientAuthentication().addClientAuthentication(request, getApiKey(), getApiSecret());<NEW_LINE...
OAuthConstants.GRANT_TYPE, OAuthConstants.AUTHORIZATION_CODE);
464,451
private ProfileResult doGetTree(int token) {<NEW_LINE>E <MASK><NEW_LINE>PB breakdown = breakdowns.get(token);<NEW_LINE>List<Integer> children = tree.get(token);<NEW_LINE>List<ProfileResult> childrenProfileResults = Collections.emptyList();<NEW_LINE>if (children != null) {<NEW_LINE>childrenProfileResults = new ArrayList...
element = elements.get(token);
1,358,171
public Object initializePlugin(String pluginClass, ClassLoader appClassLoader) {<NEW_LINE>if (appClassLoader == null)<NEW_LINE>throw new IllegalArgumentException("Cannot initialize plugin '" + pluginClass + "', appClassLoader is null.");<NEW_LINE>// ensure classloader initialized<NEW_LINE>pluginManager.initClassLoader(...
debug("Plugin {} disabled in classloader {}.", clazz, appClassLoader);
850,916
final GetColumnStatisticsForTableResult executeGetColumnStatisticsForTable(GetColumnStatisticsForTableRequest getColumnStatisticsForTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getColumnStatisticsForTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
378,708
// ----- private methods -----<NEW_LINE>private Comparable resolve(final GraphObject obj, final String path) {<NEW_LINE>final ConfigurationProvider config = StructrApp.getConfiguration();<NEW_LINE>final String[] <MASK><NEW_LINE>GraphObject current = obj;<NEW_LINE>int pos = 0;<NEW_LINE>for (final String part : parts) {<...
parts = path.split("[\\.]+");
631,794
protected void doProcessReportWithConverter(IXDocReport report, IContext context, Options options, DumperOptions dumperOptions, HttpServletRequest request, HttpServletResponse response) throws XDocReportException, IOException, XDocConverterException {<NEW_LINE>if (dumperOptions != null) {<NEW_LINE>// 2) Get dumper<NEW_...
converter = report.getConverter(options);
1,484,211
public boolean onNavigationItemSelected(int position, long itemId) {<NEW_LINE>if (position != 0) {<NEW_LINE>if (position == POSITION_CURRENT_LOCATION) {<NEW_LINE>net.osmand.Location loc <MASK><NEW_LINE>searchAroundCurrentLocation = true;<NEW_LINE>if (loc != null && System.currentTimeMillis() - loc.getTime() < 10000) {<...
= getLocationProvider().getLastKnownLocation();
575,833
private void onSendBtc() {<NEW_LINE>if (!GUIUtil.isReadyForTxBroadcastOrShowPopup(p2PService, walletsSetup)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String receiversAddressString = receiversBtcAddressInputTextField.getText();<NEW_LINE>Coin receiverAmount = bsqFormatter.parseToBTC(btcAmountInputTextField.getText());<NEW_...
txWithBtcFee = btcWalletService.completePreparedSendBsqTx(preparedSendTx);
966,695
public final FormalParametersContext formalParameters() throws RecognitionException {<NEW_LINE>FormalParametersContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 94, RULE_formalParameters);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(762);<NEW_LINE>match...
FormalParametersContext(_ctx, getState());
450,598
public static CharSequence userInfo(CharSequence userInfo, boolean encode) throws IllegalArgumentException {<NEW_LINE>final int length = userInfo.length();<NEW_LINE>final StringBuilder stb = new StringBuilder(length);<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>final char c = userInfo.charAt(i);<NEW_LINE>if (c...
toHexOrReject(c, stb, encode);
1,222,082
private boolean maybeInternLiteral(JsLiteral x, JsContext ctx) {<NEW_LINE>if (!x.isInternable()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!alwaysIntern) {<NEW_LINE>int occurrences = occurrencesPerLiteral.count(x);<NEW_LINE>if (occurrences < MINIMUM_NUMBER_OF_OCCURRENCES_TO_INTERN) {<NEW_LINE>return false;<NEW_L...
name = variableNameForInternedLiteral.get(x);
133,817
private boolean tooManySpineElements(Document doc, String pathRootFile, int maxSpineElements) {<NEW_LINE>boolean isFixedFormat = false;<NEW_LINE>for (SpineItem si : epubPack.getSpine().getItems()) {<NEW_LINE>String val = si.getProperties();<NEW_LINE>if (val != null && val.equalsIgnoreCase("rendition:layout-pre-paginate...
String val = e.getValue();
1,705,070
static ImmutableMap<ExecutableElement, TypeMirror> rewriteReturnTypes(Elements elementUtils, Types typeUtils, Collection<ExecutableElement> methods, TypeElement sourceType, TypeElement targetType) {<NEW_LINE>List<? extends TypeParameterElement<MASK><NEW_LINE>List<? extends TypeParameterElement> targetTypeParameters = t...
> sourceTypeParameters = sourceType.getTypeParameters();
1,685,718
private void computeSize() {<NEW_LINE>sizeInvalid = false;<NEW_LINE>prefWidth = 0;<NEW_LINE>prefHeight = 0;<NEW_LINE>minWidth = 0;<NEW_LINE>minHeight = 0;<NEW_LINE>maxWidth = 0;<NEW_LINE>maxHeight = 0;<NEW_LINE>SnapshotArray<Actor> children = getChildren();<NEW_LINE>for (int i = 0, n = children.size; i < n; i++) {<NEW_...
prefHeight, layout.getPrefHeight());
1,374,937
final UpdateCrawlerResult executeUpdateCrawler(UpdateCrawlerRequest updateCrawlerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateCrawlerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UpdateCrawlerReq...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,271,303
public static <K extends @Nullable Object, V extends @Nullable Object> Multimap<K, V> filterKeys(Multimap<K, V> unfiltered, final Predicate<? super K> keyPredicate) {<NEW_LINE>if (unfiltered instanceof SetMultimap) {<NEW_LINE>return filterKeys((SetMultimap<K, V>) unfiltered, keyPredicate);<NEW_LINE>} else if (unfiltere...
FilteredMultimap<K, V>) unfiltered;
1,465,137
public Authentication authenticate(Authentication authentication) throws AuthenticationException {<NEW_LINE>OAuth2ClientCredentialsAuthenticationToken clientCredentialsAuthentication = (OAuth2ClientCredentialsAuthenticationToken) authentication;<NEW_LINE>OAuth2ClientAuthenticationToken clientPrincipal = getAuthenticate...
this.tokenGenerator.generate(tokenContext);
119,526
public Mono<Response<ADGroupInner>> createWithResponseAsync(String tenantId, GroupCreateParameters parameters) {<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_LINE>}<NEW_LINE>if (tena...
)).readOnly()));
733,293
public static void findClasspathOrder(final ClassLoader classLoader, final ClasspathOrder classpathOrder, final ScanSpec scanSpec, final LogNode log) {<NEW_LINE>final Object module = ReflectionUtils.<MASK><NEW_LINE>final Object callerModuleLoader = ReflectionUtils.invokeMethod(false, module, "getCallerModuleLoader");<N...
invokeMethod(false, classLoader, "getModule");
239,316
/* GRECLIPSE edit -- GROOVY-4386, GROOVY-7812, et al.<NEW_LINE>private boolean resolveToOuterNested(ClassNode type) {<NEW_LINE>CompileUnit compileUnit = currentClass.getCompileUnit();<NEW_LINE>String typeName = type.getName();<NEW_LINE><NEW_LINE>ModuleNode module = currentClass.getModule();<NEW_LINE>for (ImportNode imp...
String importClassName = importNode.getClassName();
221,354
public static ListHotParamRulesOfResourceResponse unmarshall(ListHotParamRulesOfResourceResponse listHotParamRulesOfResourceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listHotParamRulesOfResourceResponse.setRequestId(_ctx.stringValue("ListHotParamRulesOfResourceResponse.RequestId"));<NEW_LINE>listHotParamRulesOfReso...
("ListHotParamRulesOfResourceResponse.Data.Datas[" + i + "].Enable"));
1,374,699
public Set<FileObject> extend(WebModule webModule) {<NEW_LINE>Project <MASK><NEW_LINE>// when there is no enclosing project found empty set is returned<NEW_LINE>if (enclosingProject != null) {<NEW_LINE>Sources sources = ProjectUtils.getSources(enclosingProject);<NEW_LINE>try {<NEW_LINE>SourceGroup[] javaSourceGroup = s...
enclosingProject = Util.getEnclosingProjectFromWebModule(webModule);
961,140
final ListAvailableResourceDimensionsResult executeListAvailableResourceDimensions(ListAvailableResourceDimensionsRequest listAvailableResourceDimensionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAvailableResourceDimensionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
254,175
public static boolean multiByteSqueeze(ByteList value, boolean[] squeeze, TrTables tables, Encoding enc, boolean isArg) {<NEW_LINE>int s = value.getBegin();<NEW_LINE>int t = s;<NEW_LINE>int send = s + value.getRealSize();<NEW_LINE>byte[] bytes = value.getUnsafeBytes();<NEW_LINE>int save = -1;<NEW_LINE>int c;<NEW_LINE>w...
enc, bytes, s, send);
805,635
private void showEvent() {<NEW_LINE>if (!event.isValid())<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>int id = SharedPreferencesUtil.getInt(ConstantStrings.SESSION_MAP_ID, -1);<NEW_LINE>if (id != -1) {<NEW_LINE>Session session = realmRepo.getSessionSync(id);<NEW_LINE>Microlocation microlocation = session.getMicrolocation(...
setDestinationLatitude(event.getLatitude());
1,388,470
private void updateProcessStatus(UAVHttpMessage data) {<NEW_LINE>String ntfkey = data.getRequest(NCConstant.NTFKEY);<NEW_LINE>long startTime_gui = DataConvertHelper.toLong(data.getRequest(NCConstant.NTFTime), -1);<NEW_LINE>String <MASK><NEW_LINE>// no exist the cache value<NEW_LINE>if (stateDataStr == null) {<NEW_LINE>...
stateDataStr = eventStatusManager.getEventCache(ntfkey);
77,549
public static int[] stringToGradientPalette(String str, String gradientScaleType) {<NEW_LINE>boolean isSlope = "gradient_slope_color".equals(gradientScaleType);<NEW_LINE>if (Algorithms.isBlank(str)) {<NEW_LINE>return isSlope ? RouteColorize.SLOPE_COLORS : RouteColorize.COLORS;<NEW_LINE>}<NEW_LINE>String[] arr = str.spl...
? RouteColorize.SLOPE_COLORS : RouteColorize.COLORS;
535,856
private void plotAllRecordedData() {<NEW_LINE><MASK><NEW_LINE>if (recordedDustSensorArray.size() != 0) {<NEW_LINE>for (DustSensorData d : recordedDustSensorArray) {<NEW_LINE>Entry entry = new Entry((float) (d.getTime() - d.getBlock()) / 1000, d.getPpmValue());<NEW_LINE>entries.add(entry);<NEW_LINE>dustSensorMeter.setWi...
recordedDustSensorArray.addAll(dustSensorActivity.recordedDustSensorData);
594,763
private Phase createPhase() {<NEW_LINE>Phase phase = new Phase("creator", isVerboseLogging());<NEW_LINE>phase.withDaemonAccess();<NEW_LINE>configureDaemonAccess(phase);<NEW_LINE>phase.withLogLevelArg();<NEW_LINE>phase.withArgs("-app", Directory.APPLICATION);<NEW_LINE>phase.withArgs("-platform", Directory.PLATFORM);<NEW...
this.request.getNetwork());
1,736,288
// note that the linking part is explicitly done in HUPPOrderMaterialTrackingBL<NEW_LINE>@DocValidate(timings = { ModelValidator.TIMING_AFTER_VOID, ModelValidator.TIMING_AFTER_REACTIVATE, ModelValidator.TIMING_AFTER_REVERSEACCRUAL, ModelValidator.TIMING_AFTER_REVERSECORRECT })<NEW_LINE>public void unlinkFromMaterialTra...
Services.get(IPPCostCollectorBL.class);
1,653,048
private void drawBackground(Canvas canvas) {<NEW_LINE>RectF rect = mCropWindowHandler.getRect();<NEW_LINE>float left = Math.max(BitmapUtils.getRectLeft(mBoundsPoints), 0);<NEW_LINE>float top = Math.max(BitmapUtils.getRectTop(mBoundsPoints), 0);<NEW_LINE>float right = Math.min(BitmapUtils.getRectRight<MASK><NEW_LINE>flo...
(mBoundsPoints), getWidth());
1,256,694
private void writeToStream(ShortDictionaryMap dictionary, DataOutputStream dos) {<NEW_LINE>try {<NEW_LINE>// write the maps<NEW_LINE>// we write each one keys first, then values<NEW_LINE>// the idea is that there are relatively few unique values so it's cheap to write them more<NEW_LINE>// than once<NEW_LINE>ObjectSet<...
writeInt(count.getIntValue());
1,212,788
// calculates the PV results for the instruments used in calibration from the config<NEW_LINE>private static Pair<List<Trade>, Results> calculate(CalculationRunner runner) {<NEW_LINE>// the reference data, such as holidays and securities<NEW_LINE>ReferenceData refData = ReferenceData.standard();<NEW_LINE>// load quotes...
CalculationRules.of(functions, ratesLookup);
1,402,553
// alert.<NEW_LINE>public static void checkAndSendAlert(Context context, Location location, @Nullable Weather oldResult) {<NEW_LINE>Weather weather = location.getWeather();<NEW_LINE>if (weather == null || !SettingsManager.getInstance(context).isAlertPushEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Alert> aler...
alertList.size() > 1);
1,042,803
protected void paintInPanel(AffineTransform tran, Graphics2D g2) {<NEW_LINE>super.paintInPanel(tran, g2);<NEW_LINE>BoofSwingUtil.antialiasing(g2);<NEW_LINE>if (controlPanel.translucent > 0) {<NEW_LINE>// this requires some explaining<NEW_LINE>// for some reason it was decided that the transform would apply a translatio...
line = new Line2D.Double();
743,198
public TemporalFilterSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TemporalFilterSettings temporalFilterSettings = new TemporalFilterSettings();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
613,734
public static UpdateFunctionResponse unmarshall(UpdateFunctionResponse updateFunctionResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateFunctionResponse.setRequestId(_ctx.stringValue("UpdateFunctionResponse.RequestId"));<NEW_LINE>updateFunctionResponse.setHttpStatusCode(_ctx.stringValue("UpdateFunctionResponse.HttpSt...
= new ArrayList<CustomVariable>();
1,457,978
private void loadPMRByPipelineIds(List<Long> pipelineIds) {<NEW_LINE>List<PipelineMaterialRevision> pmrs = (List<PipelineMaterialRevision>) getHibernateTemplate().findByCriteria(buildPMRDetachedQuery(pipelineIds));<NEW_LINE>sortPersistentObjectsById(pmrs, true);<NEW_LINE>final Set<PipelineMaterialRevision> uniquePmrs =...
goCache.put(cacheKey, pmrsForId);
1,465,339
private void downloadTorrent() {<NEW_LINE>if (!Global.hasStoragePermission(this)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String url = String.format(Locale.US, Utility.getBaseUrl() + "g/%d/download", gallery.getId());<NEW_LINE>String referer = String.format(Locale.US, Utility.getBaseUrl() + "g/%d/", gallery.getId());<NE...
"GET", null).start();
1,597,730
public static VirtualFileVisitor.Result visitChildrenRecursively(@Nonnull VirtualFile file, @Nonnull VirtualFileVisitor<?> visitor) throws VisitorException {<NEW_LINE>boolean pushed = false;<NEW_LINE>try {<NEW_LINE>final boolean visited = visitor.allowVisitFile(file);<NEW_LINE>if (visited) {<NEW_LINE>VirtualFileVisitor...
"Ignoring: " + e.getMessage());
593,705
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>final GetRequest getRequest = new GetRequest(request.param("index"), request.param("id"));<NEW_LINE>getRequest.refresh(request.paramAsBoolean("refresh", getRequest.refresh()));<NEW_LINE>getRequest...
, getRequest.realtime()));
82,363
private DefaultModelCriteria<UserModel> addSearchToModelCriteria(String value, DefaultModelCriteria<UserModel> mcb) {<NEW_LINE>if (value.length() >= 2 && value.charAt(0) == '"' && value.charAt(value.length() - 1) == '"') {<NEW_LINE>// exact search<NEW_LINE>value = value.substring(1, value.length() - 1);<NEW_LINE>} else...
value.length() - 1);
1,727,299
private void detectAndModifySamplerOnGraphQLRequest(final HTTPSamplerBase sampler, final HttpRequestHdr request) {<NEW_LINE>final String method = request.getMethod();<NEW_LINE>final Header header = request.getHeaderManager().getFirstHeaderNamed("Content-Type");<NEW_LINE>final boolean graphQLContentType = header != null...
), sampler.getContentEncoding());
144,100
ActionResult<Wo> execute(String applicationId, String unit, String person) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<DateRange> ...
list = new ArrayList<>();
1,310,272
private void createContent() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>setIconImage(Toolkit.getDefaultToolkit().getImage(MainFrame.class.getResource(ICON)));<NEW_LINE>textArea = new JTextArea(20, 15);<NEW_LINE>textArea.setEditable(false);<NEW_LINE>final JScrollPane textAreaScrollPane = new JScrollPane(textArea...
final JPanel textAreaPanel = new JPanel();
1,633,758
List<String> extractFeatures() {<NEW_LINE>List<String> features = new ArrayList<>();<NEW_LINE>features.add("1:" + Character.isUpperCase(previousLetter));<NEW_LINE>features.add("1b:" + Character.isWhitespace(nextLetter));<NEW_LINE>features.add("1a:" + previousLetter);<NEW_LINE>features.add("1b:" + nextLetter);<NEW_LINE>...
("9n:" + getMetaChars(nextWord));
994,322
public void draw(Graphics g1, Component c) {<NEW_LINE>int w = c.getWidth();<NEW_LINE>int h = c.getHeight();<NEW_LINE>float scale = w / mPortWidth;<NEW_LINE>scale = Math.min(h / mPortHeight, scale);<NEW_LINE>if (mChildren == null) {<NEW_LINE>logger.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Graphics2D g = (Graphics2D) ...
log(Level.FINE, "no pathes");
1,789,491
public static Slime toSlime(EndpointCertificateMetadata metadata) {<NEW_LINE>Slime slime = new Slime();<NEW_LINE>Cursor object = slime.setObject();<NEW_LINE>object.setString(keyNameField, metadata.keyName());<NEW_LINE>object.setString(certNameField, metadata.certName());<NEW_LINE>object.setLong(versionField, metadata.v...
.setString(leafRequestIdField, leafRequestId));
1,478,387
protected static void runInDocker(String[] args, String validBrowsers) {<NEW_LINE>String browserName = args[1];<NEW_LINE>log.info("Using WebDriverManager to run {} in Docker", browserName);<NEW_LINE>try {<NEW_LINE>WebDriverManager wdm;<NEW_LINE>if (browserName.equalsIgnoreCase("chrome-mobile")) {<NEW_LINE>wdm = WebDriv...
= new Scanner(System.in);
1,303,547
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>TaskCo...
.toList(TaskCompleted.job_FIELDNAME));
359,060
public Observable<VectorSchemaRoot> execute(RootContext rootContext) {<NEW_LINE>return input.execute(rootContext).reduce((root, root2) -> {<NEW_LINE>NLJoinPlan.merge(root, root2);<NEW_LINE>root2.close();<NEW_LINE>return root;<NEW_LINE>}).map(input -> {<NEW_LINE>int rowCount = input.getRowCount();<NEW_LINE>int columnCou...
BufferAllocator rootAllocator = rootContext.getRootAllocator();
1,364,087
protected void handleJwksRequest() {<NEW_LINE>try {<NEW_LINE>JSONWebKeySet jwks = new JSONWebKeySet();<NEW_LINE><MASK><NEW_LINE>// For now, just get signature key from JWT provider. We can add more if we support encryption etc.<NEW_LINE>if (clientCredentialsProvider instanceof JWTClientCredentialsProvider) {<NEW_LINE>P...
ClientCredentialsProvider clientCredentialsProvider = deployment.getClientAuthenticator();
1,363,284
public S3JobManifestGenerator unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>S3JobManifestGenerator s3JobManifestGenerator = new S3JobManifestGenerator();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument...
().unmarshall(context));
1,215,018
private static String collectFailureReasons(MatchOperation root) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("match failed: ").append(root.type).append('\n');<NEW_LINE>Collections.reverse(root.failures);<NEW_LINE>Iterator<MatchOperation> iterator = root.failures.iterator();<NEW_LINE>Set previo...
add(mo.context.path);
57,861
public void configure(Binder binder) {<NEW_LINE>binder.bind(AgentConfig.class).toProvider(AgentConfigProvider.class<MASK><NEW_LINE>binder.bind(WorkspaceManager.class).to(LocalWorkspaceManager.class).in(Scopes.SINGLETON);<NEW_LINE>binder.bind(TaskCallbackApi.class).to(InProcessTaskCallbackApi.class).in(Scopes.SINGLETON)...
).in(Scopes.SINGLETON);
1,752,383
public Object objectPreviewEntries(Object object) {<NEW_LINE>JSDynamicObject dynamicObject = (JSDynamicObject) object;<NEW_LINE>JSContext context = JSObject.getJSContext(dynamicObject);<NEW_LINE>JSHashMap.Cursor cursor = (JSHashMap.Cursor) JSObjectUtil.<MASK><NEW_LINE>if (cursor != null) {<NEW_LINE>Object kindObject = ...
getHiddenProperty(dynamicObject, JSRuntime.ITERATOR_NEXT_INDEX);
769,658
private void calculateAndWritePartitioner() throws OperationException {<NEW_LINE>// Create new graph partitioner<NEW_LINE>LOGGER.info("Calculating new GraphPartitioner");<NEW_LINE>final GraphPartitioner newPartitioner;<NEW_LINE>try {<NEW_LINE>newPartitioner = new CalculatePartitioner(new Path(getSortedAggregatedDirecto...
stream = fs.create(newGraphPartitionerPath);
1,076,646
public <T> T onSingletonProviderInit(T provider, Object contextObject, Message m) {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>if (contextObject == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<Class<?>, Object> newContext = (Map<Class<?>, Object>) (contextObject);<NEW_LINE>if (newContext.isEmpty()) {...
getClass().getName());
689,911
private Wo list(Business business, String key) throws Exception {<NEW_LINE>String str = key.replaceAll("_", "\\\\_");<NEW_LINE>str = str.replaceAll("%", "\\\\%");<NEW_LINE>str = str.toLowerCase();<NEW_LINE>EntityManager em = business.entityManagerContainer().get(UnitDuty.class);<NEW_LINE>CriteriaBuilder cb = em.getCrit...
, key + "%", '\\'));
1,473,794
public StaticObject toGuestComponent(Meta meta, ObjectKlass klass) {<NEW_LINE>assert meta.getJavaVersion().java16OrLater();<NEW_LINE>RuntimeConstantPool pool = klass.getConstantPool();<NEW_LINE>StaticObject component = meta.java_lang_reflect_RecordComponent.allocateInstance();<NEW_LINE>Symbol<Name> nameSymbol = pool.sy...
RuntimeVisibleTypeAnnotations, meta.java_lang_reflect_RecordComponent_typeAnnotations, meta);
632,018
public void visitRegularInputs(InputFingerprinter.InputVisitor visitor) {<NEW_LINE>TaskProperties taskProperties = context.getTaskProperties();<NEW_LINE>ImmutableSortedSet<InputPropertySpec> inputProperties = taskProperties.getInputProperties();<NEW_LINE>ImmutableSortedSet<InputFilePropertySpec> inputFileProperties = t...
String propertyName = inputFileProperty.getPropertyName();
1,412,792
public void aggregate(ByteBuffer buf, int position, int startRow, int endRow) {<NEW_LINE>// Save position, limit and restore later instead of allocating a new ByteBuffer object<NEW_LINE>final <MASK><NEW_LINE>final int oldLimit = buf.limit();<NEW_LINE>try {<NEW_LINE>final long[] vector = selector.getLongVector();<NEW_LI...
int oldPosition = buf.position();
1,275,443
public SecurPharmHUAttributesScannerResult scanAndUpdateHUAttributes(@NonNull final DataMatrixCode dataMatrix, @NonNull final I_M_HU hu) {<NEW_LINE>final HuId huId = HuId.<MASK><NEW_LINE>final SecurPharmProduct scannedProduct = securPharmService.getAndSaveProduct(dataMatrix, huId);<NEW_LINE>final SecurPharmAttributesSt...
ofRepoId(hu.getM_HU_ID());
213,629
public static int choppedLength(CodeRangeable str) {<NEW_LINE><MASK><NEW_LINE>Encoding enc = bl.getEncoding();<NEW_LINE>int p, p2, beg, end;<NEW_LINE>beg = bl.begin();<NEW_LINE>end = beg + bl.realSize();<NEW_LINE>if (beg > end)<NEW_LINE>return 0;<NEW_LINE>p = enc.prevCharHead(bl.unsafeBytes(), beg, end, end);<NEW_LINE>...
ByteList bl = str.getByteList();
804,130
final GetMasterAccountResult executeGetMasterAccount(GetMasterAccountRequest getMasterAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMasterAccountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(getMasterAccountRequest));
98,697
protected void makeActions(IWorkbenchWindow window) {<NEW_LINE>Server server = ServerManager.getInstance().getDefaultServer();<NEW_LINE>int serverId = 0;<NEW_LINE>if (server != null) {<NEW_LINE>serverId = server.getId();<NEW_LINE>}<NEW_LINE>// File<NEW_LINE>register(new OpenClientThreadListAction(window, "Client Thread...
register(new OpenClientEnvViewAction(window));
93,564
public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(true);<NEW_LINE>final Map<String, Object> nodeData = webSocketData.getNodeData();<NEW_LINE>final String parentId = (String) nodeData.get("parentId");<NEW_LINE>final String newId = (String) nodeData.get("newId");<NE...
).build(), true);
1,202,926
public void renameFile(String new_file) throws CacheFileManagerException {<NEW_LINE>try {<NEW_LINE>synchronized (this) {<NEW_LINE>moving = true;<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>synchronized (this) {<NEW_LINE>boolean surviving = false;<NEW_LINE>for (int i = 1; i < files_use_count.length; i++) {<NEW_LINE>if (...
[] { files_use_count[0] };
431,010
public void updateParticleData(Particle[] particles, Camera cam, Matrix3f inverseRotation) {<NEW_LINE>VertexBuffer pvb = getBuffer(VertexBuffer.Type.Position);<NEW_LINE>FloatBuffer positions = (FloatBuffer) pvb.getData();<NEW_LINE>VertexBuffer cvb = getBuffer(VertexBuffer.Type.Color);<NEW_LINE>ByteBuffer colors = (Byte...
p.color.asIntABGR());
172,020
// prepare<NEW_LINE>@Override<NEW_LINE>protected String doIt() throws Exception {<NEW_LINE>log.info("From Bank=" + p_From_C_BankAccount_ID + " - To Bank=" + p_To_C_BankAccount_ID + " - C_BPartner_ID=" + p_C_BPartner_ID + "- C_Charge_ID= " + p_C_Charge_ID + " - Amount=" + p_Amount + " - DocumentNo=" + p_DocumentNo + " -...
Timestamp(System.currentTimeMillis());
1,676,042
public Multimap<String, String> genCopyHeaders() {<NEW_LINE>Multimap<String, String> headers = HashMultimap.create();<NEW_LINE>String copySource = S3Escaper.encodePath("/" + bucketName + "/" + objectName);<NEW_LINE>if (versionId != null) {<NEW_LINE>copySource += "?versionId=" + S3Escaper.encode(versionId);<NEW_LINE>}<N...
(ssec.copySourceHeaders()));
443,170
public static Node createNodeByPath(Document doc, String path) {<NEW_LINE>int pos = path.lastIndexOf('/');<NEW_LINE>if (pos == 0) {<NEW_LINE>// root<NEW_LINE>Node root = doc.getDocumentElement();<NEW_LINE>if (root == null) {<NEW_LINE>root = createElement(doc, path.substring(1), null, null);<NEW_LINE>doc.appendChild(roo...
path.substring(0, pos);
1,129,275
public byte[] asBytes() throws Exception {<NEW_LINE>final String hex = this.origin.asString();<NEW_LINE>if ((hex.length() & 1) == 1) {<NEW_LINE>throw new IOException("Length of hexadecimal text is odd");<NEW_LINE>}<NEW_LINE>final Iterator<Integer> iter = new Mapped<>(c -> {<NEW_LINE>final int result = Character.digit(c...
, c).asString());
1,734,212
public PPOrderLinesViewData retrieveData(@NonNull final PPOrderId ppOrderId) {<NEW_LINE>final I_PP_Order ppOrder = ppOrderDAO.<MASK><NEW_LINE>final int finishedGoodProductBOMLineId = 0;<NEW_LINE>final ListMultimap<Integer, I_PP_Order_Qty> ppOrderQtysByBOMLineId = ppOrderQtyDAO.streamOrderQtys(ppOrderId).collect(GuavaCo...
getById(ppOrderId, I_PP_Order.class);
1,148,159
private void rebuildIndexes(final Set<String> indexesToRebuild) {<NEW_LINE>listener.onMessage("\nRebuilding indexes of truncated clusters ...");<NEW_LINE>for (final String indexName : indexesToRebuild) database.getMetadata().getIndexManagerInternal().getIndex(database, indexName).rebuild(new OProgressListener() {<NEW_L...
("\nIndex '%s' is rebuilding (%.2f/100)", indexName, iPercent));