idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,279,679
public void refresh() {<NEW_LINE>ModuleManager moduleManager = verifyNotNull(context.get(ModuleManager.class), "no ModuleManager");<NEW_LINE>List<WorldGeneratorInfo> infos = Lists.newArrayList();<NEW_LINE>for (Name moduleId : moduleManager.getRegistry().getModuleIds()) {<NEW_LINE>Module module = moduleManager.getRegist...
, annotation.description()));
689,913
public ISeq<Phenotype<G, C>> select(final Seq<Phenotype<G, C>> population, final int count, final Optimize opt) {<NEW_LINE>requireNonNull(population, "Population");<NEW_LINE>requireNonNull(opt, "Optimization");<NEW_LINE>if (count < 0) {<NEW_LINE>throw new IllegalArgumentException(format("Selection count must be greater...
var random = RandomRegistry.random();
936,859
protected // }<NEW_LINE>CrawlURI makeCrawlUri(JSONObject jo) throws URIException, JSONException {<NEW_LINE>JSONObject joHeaders = jo.getJSONObject("headers");<NEW_LINE>UURI uuri = UURIFactory.getInstance(jo.getString("url"));<NEW_LINE>UURI via = UURIFactory.getInstance(jo.getString("parentUrl"));<NEW_LINE>JSONObject pa...
getAnnotations().add(A_RECEIVED_FROM_AMQP);
354,251
public static List<Restaurant> fetchRestaurants(Client client, Coordinate coordinate) throws URISyntaxException, ClientProtocolException, IOException {<NEW_LINE>List<Restaurant> restaurants = new ArrayList<>();<NEW_LINE>URIBuilder uri = Config.getURIBuilder(Restaurant.API_PATH);<NEW_LINE>uri.setParameter("lat", coordin...
getHttpClient().execute(httpGet);
1,538,706
final ReleaseStaticIpResult executeReleaseStaticIp(ReleaseStaticIpRequest releaseStaticIpRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(releaseStaticIpRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
656,383
public SensitiveDataResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SensitiveDataResult sensitiveDataResult = new SensitiveDataResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok...
int originalDepth = context.getCurrentDepth();
1,315,161
private static TransformEvaluator<Impulse> impulse() {<NEW_LINE>return new TransformEvaluator<Impulse>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void evaluate(Impulse transform, EvaluationContext context) {<NEW_LINE>ClassTag<WindowedValue<byte[]>> classTag = ClassTag$.<MASK><NEW_LINE>JavaRDD<WindowedValue<byte[]...
MODULE$.apply(WindowedValue.class);
790,431
public Mono<Void> init(ProtocolSupportDefinition definition) {<NEW_LINE>if (definition.getState() != 1) {<NEW_LINE>String protocol = configProtocolIdMapping.get(definition.getId());<NEW_LINE>if (protocol != null) {<NEW_LINE>log.debug("uninstall protocol:{}", definition);<NEW_LINE>unRegister(protocol);<NEW_LINE>return M...
() != 1 ? "uninstall" : "install";
929,260
private UploadResult uploadInSinglePart(final String accountId, final String vaultName, final String archiveDescription, final File file, ProgressListener progressListener) {<NEW_LINE>String checksum = TreeHashGenerator.calculateTreeHash(file);<NEW_LINE>ResettableInputStream is = newResettableInputStream(file);<NEW_LIN...
String artifactId = uploadArchiveResult.getArchiveId();
120,954
public void nextStep(O observation, Collection<S> candidates, Map<S, Double> emissionLogProbabilities, Map<Transition<S>, Double> transitionLogProbabilities, Map<Transition<S>, D> transitionDescriptors) {<NEW_LINE>if (message == null) {<NEW_LINE>throw new IllegalStateException("startWithInitialStateProbabilities() or s...
= new ArrayList<>(candidates);
847,621
public void visitPeriod(Period period) {<NEW_LINE>Extension catExtension = period.findOrCreateExtension("CatUsage");<NEW_LINE>if (period.getCatMessageProduced() > 0 || period.getCatMessageSize() > 0) {<NEW_LINE>catExtension.findOrCreateDetail("Produced").setValue(period.getCatMessageProduced());<NEW_LINE>catExtension.f...
setValue(period.getPigeonThreadCount());
1,158,071
public BigDecimal computeLeaveDaysByLeaveRequest(LocalDate fromDate, LocalDate toDate, LeaveRequest leaveRequest, Employee employee) throws AxelorException {<NEW_LINE>BigDecimal leaveDays = BigDecimal.ZERO;<NEW_LINE>WeeklyPlanning weeklyPlanning = employee.getWeeklyPlanning();<NEW_LINE>LocalDate leaveFrom = leaveReques...
leaveDays = leaveDays.add(daysToAdd);
832,247
public Set<Class<?>> findTypes(Iterable<String> basePackages) {<NEW_LINE>ClassPathScanningCandidateComponentProvider provider = new InterfaceAwareScanner(considerInterfaces);<NEW_LINE>if (resourceLoader != null) {<NEW_LINE>provider.setResourceLoader(resourceLoader);<NEW_LINE>}<NEW_LINE>if (environment != null) {<NEW_LI...
.format("Unable to obtain bean class name from bean definition %s!", definition));
429,241
protected void onFragmentCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>if (getArguments() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String login = getArguments().getString(BundleConstant.EXTRA);<NEW_LINE>String repo = getArguments().getString(BundleConstant.ID);<NEW_LINE>if (login ==...
getPresenter().getMilestones());
1,224,112
public DirectoryList transform(DirectoryListKey key, ComputationEnvironment env) throws Exception {<NEW_LINE>ImmutableCollection<Path> contents = fileSystemView.getDirectoryContents(key.getPath());<NEW_LINE>ImmutableSortedSet.Builder<Path> filesBuilder = new ImmutableSortedSet.Builder<>(Comparator.naturalOrder());<NEW_...
BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS);
62,906
protected void cacheInitRecording() {<NEW_LINE>if (cacheSkipped) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (cachedDataset != null) {<NEW_LINE>// we have a cache dataset, nothing to do<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (filler == null) {<NEW_LINE>// not a regular report fill, nothing to do<NEW_LINE>return;<NEW_LIN...
log.debug("data not persistable by property for " + fillPosition);
9,344
public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>out.writeStringArray(indices);<NEW_LINE>out.writeVInt(mappings.size());<NEW_LINE>for (ObjectObjectCursor<String, MappingMetadata> indexEntry : mappings) {<NEW_LINE>out.writeString(indexEntry.key);<NEW_LINE>if (out.getVersion().before(Version.V_2_0_0)) ...
out.writeString(indexEntry.key);
1,644,952
public static void main(String[] args) throws ApiException, IOException {<NEW_LINE>if (StringUtils.isEmpty(System.getProperty(Constants.JAVAX_NET_SSL_TRUST_STORE))) {<NEW_LINE>System.setProperty(Constants.JAVAX_NET_SSL_TRUST_STORE, clientTrustStore);<NEW_LINE>}<NEW_LINE>if (StringUtils.isEmpty(System.getProperty(Consta...
Constants.JAVAX_NET_SSL_TRUST_STORE_TYPE, Constants.JKS);
261,164
private void configureSharingButtonsFromResponse(JSONObject response) {<NEW_LINE>// the array of buttons is in SHARING_BUTTONS_KEY for the GET response,<NEW_LINE>// or SHARING_BUTTONS_UPDATED_KEY for the POST response<NEW_LINE>JSONArray jsonArray;<NEW_LINE>if (response.has(SHARING_BUTTONS_KEY)) {<NEW_LINE>jsonArray = r...
PrefListItem(itemName, itemValue, isChecked);
512,624
private void rangeFormat(FileObject fo, LSPBindings bindings) throws BadLocationException {<NEW_LINE>DocumentRangeFormattingParams drfp = new DocumentRangeFormattingParams();<NEW_LINE>drfp.setTextDocument(new TextDocumentIdentifier(Utils.toURI(fo)));<NEW_LINE>drfp.setOptions(new FormattingOptions(IndentUtils.indentLeve...
edits = new ArrayList<>();
417,601
// textured polygon<NEW_LINE>private void demo3() {<NEW_LINE>if (printDemo)<NEW_LINE>println("demo3");<NEW_LINE>// test that textured shapes and tint() work correctly<NEW_LINE>float s = 4;<NEW_LINE>beginShape();<NEW_LINE>texture(img);<NEW_LINE>vertex(10 * s, 20 * s, 0, 0);<NEW_LINE>tint(0, 255, 127, 127);<NEW_LINE>vert...
(img, -200, 100);
518,364
public void inline(Invoke invoke, String reason, String phase) {<NEW_LINE>assert invoke instanceof Node;<NEW_LINE>Node invokeNode = (Node) invoke;<NEW_LINE>ResolvedJavaMethod methodToInline = invoke<MASK><NEW_LINE>Plugins plugins = new Plugins(graphBuilderPlugins);<NEW_LINE>GraphBuilderConfiguration config = GraphBuild...
.callTarget().targetMethod();
1,367,054
private boolean refresh(long now, Connector clusterManagementConnector) {<NEW_LINE>boolean expired = false;<NEW_LINE>long freshTimeNanos = now - configuration.get(DtlsClusterManagerConfig.REFRESH_INTERVAL, TimeUnit.NANOSECONDS);<NEW_LINE>long expireTimeNanos = freshTimeNanos - configuration.get(DtlsClusterManagerConfig...
node.nodeId, node.address);
463,812
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicLong currentTime = new AtomicLong(0);<NEW_LINE>env.advanceTime(currentTime.get());<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.<MASK><NEW_LINE>env.compileDeploy("@name('intotable') into table MyTable " + "select sum(intPrimitive) as thesu...
compileDeploy("@name('create') @public create table MyTable as (\n" + "key string primary key, thesum sum(int))", path);
697,797
public Set<Data> loadAll(Set<Data> keys, boolean replaceExistingValues) {<NEW_LINE>Map<Data, Object> loaded = loadAllCacheEntry(keys);<NEW_LINE>if (loaded == null || loaded.isEmpty()) {<NEW_LINE>return emptySet();<NEW_LINE>}<NEW_LINE>Set<Data> keysLoaded = createHashSet(loaded.size());<NEW_LINE>if (replaceExistingValue...
Data key = entry.getKey();
1,465,903
protected void createActions() {<NEW_LINE>super.createActions();<NEW_LINE>// content assist proposal action<NEW_LINE>IAction a = new // $NON-NLS-1$<NEW_LINE>TextOperationAction(// $NON-NLS-1$<NEW_LINE>TLAEditorMessages.getResourceBundle(), // $NON-NLS-1$<NEW_LINE>"ContentAssistProposal.", // $NON-NLS-1$<NEW_LINE>this, ...
setActionDefinitionId(TLAEditorActivator.PLUGIN_ID + ".FormatAction");
1,030,688
private void findBPartner() {<NEW_LINE>String query = bPartnerName.getText();<NEW_LINE>//<NEW_LINE>if (query == null || query.length() == 0)<NEW_LINE>return;<NEW_LINE>// unchanged<NEW_LINE>if (posPanel.hasBPartner() && posPanel.compareBPName(query))<NEW_LINE>return;<NEW_LINE>query = query.toUpperCase();<NEW_LINE>// Tes...
] qq = query.toCharArray();
1,173,346
public Expression visit(Expression expr, Map<Expression, Expression> substitutionMap) {<NEW_LINE>if (expr instanceof Alias && expr.child(0) instanceof SlotReference) {<NEW_LINE>// case 1:<NEW_LINE>Expression c = expr.child(0);<NEW_LINE>// Alias doesn't contain qualifier<NEW_LINE>Slot ref = ((SlotReference) c).withQuali...
Alias) substitutionMap.get(ref);
354,327
private void configureVM(VirtualMachineTO vmTO, LibvirtVMDef vm, Map<String, String> customParams, boolean isUefiEnabled, boolean isSecureBoot, String bootMode, Map<String, String> extraConfig, String uuid) {<NEW_LINE>s_logger.debug(String.format("Configuring VM with UUID [%s].", uuid));<NEW_LINE>GuestDef guest = creat...
configureGuestIfUefiEnabled(isSecureBoot, bootMode, guest);
1,442,849
void onStreamConnectSuccess() {<NEW_LINE>boolean debugEnabled = LOG.isDebugEnabled();<NEW_LINE>_curState = State.STREAM_REQUEST_WRITE;<NEW_LINE>ChannelPipeline channelPipeline = _channel.getPipeline();<NEW_LINE>_readTimeOutHandler = (ExtendedReadTimeoutHandler) channelPipeline.get(GenericHttpClientPipelineFactory.READ_...
LOG.debug("Sending " + url);
468,911
final UpdatePresetResult executeUpdatePreset(UpdatePresetRequest updatePresetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePresetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
678,204
public void writeCsv(CsvRowOutputWithHeaders csv, TermDepositTrade trade) {<NEW_LINE>TermDeposit product = trade.getProduct();<NEW_LINE>csv.writeCell(TRADE_TYPE_FIELD, "TermDeposit");<NEW_LINE>csv.writeCell(BUY_SELL_FIELD, product.getBuySell());<NEW_LINE>csv.writeCell(CURRENCY_FIELD, product.getCurrency());<NEW_LINE>cs...
DAY_COUNT_FIELD, product.getDayCount());
474,929
public void start() {<NEW_LINE>// A good practice is to register as STARTING and only change status to UP<NEW_LINE>// after the service is ready to receive traffic<NEW_LINE>System.out.println("Registering service to eureka with STARTING status");<NEW_LINE>applicationInfoManager.setInstanceStatus(InstanceInfo.InstanceSt...
System.out.println("Simulating service initialization by sleeping for 2 seconds...");
1,420,836
public void addAll(MostlySingularMultiMap<K, V> other) {<NEW_LINE>if (other instanceof EmptyMap)<NEW_LINE>return;<NEW_LINE>for (Map.Entry<K, Object> entry : other.myMap.entrySet()) {<NEW_LINE>K key = entry.getKey();<NEW_LINE>Object otherValue = entry.getValue();<NEW_LINE>Object myValue = myMap.get(key);<NEW_LINE>if (my...
myMap.put(key, otherValue);
1,794,899
public ComponentPreset extractLaunchLug() {<NEW_LINE>TypedPropertyMap props = new TypedPropertyMap();<NEW_LINE>try {<NEW_LINE>props.put(ComponentPreset.TYPE, ComponentPreset.Type.LAUNCH_LUG);<NEW_LINE>props.put(ComponentPreset.<MASK><NEW_LINE>props.put(ComponentPreset.INNER_DIAMETER, llInnerDia.getValue());<NEW_LINE>pr...
OUTER_DIAMETER, llOuterDia.getValue());
183,096
public GetLifecyclePolicyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetLifecyclePolicyResult getLifecyclePolicyResult = new GetLifecyclePolicyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
JsonToken token = context.getCurrentToken();
1,072,135
private void deleteOldItemsCsv() {<NEW_LINE>if (doneFile.getBoolean("deleteOldItemsCsv", false)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final File file = new File(ess.getDataFolder(), "items.csv");<NEW_LINE>if (file.exists()) {<NEW_LINE>try {<NEW_LINE>final Set<BigInteger> oldconfigs = new HashSet<>();<NEW_LINE>// sep ...
BufferedInputStream(new FileInputStream(file));
1,340,245
public static boolean ccontains(Collator collator, String base, String part) {<NEW_LINE>// int pos = 0;<NEW_LINE>// if (part.length() > 3) {<NEW_LINE>// // improve searching by searching first 3 characters<NEW_LINE>// pos = cindexOf(collator, pos, part.substring(0, 3), base);<NEW_LINE>// if (pos == -1) {<NEW_LINE>// re...
, base.length()));
1,329,306
public static void main(String[] args) {<NEW_LINE>DecodeBitMasks bm = new DecodeBitMasks();<NEW_LINE>boolean valid;<NEW_LINE>valid = bm.decode(0, 0, 0, true, 64);<NEW_LINE>if (valid) {<NEW_LINE>bm.printit();<NEW_LINE>}<NEW_LINE>int immN = 0;<NEW_LINE>// for (int immN = 0; immN <= 1; immN++) {<NEW_LINE>for (int immr = 0...
imms, 0, true, 64);
1,016,003
private void layout(Context context, AttributeSet attrs) {<NEW_LINE>inflate(context, R.layout.fastscroller, this);<NEW_LINE>setClipChildren(false);<NEW_LINE>setOrientation(HORIZONTAL);<NEW_LINE>mBubbleView = (TextView) findViewById(R.id.fastscroll_bubble);<NEW_LINE>mHandleView = (ImageView) findViewById(R.id.fastscroll...
findViewById(R.id.fastscroll_scrollbar);
1,183,093
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {<NEW_LINE>if (!req.getServletPath().equals("/")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Get current values for the session.<NEW_LINE>// If any attribute doesn't exist, add it to the session.<NEW_LINE>Integer views = (Integer) req...
getSession().getAttribute("greeting");
1,192,857
private static void format(Box.Struct struct, Boxes.Context ctx, boolean isComplete, StylingString string, Style style) {<NEW_LINE>Box.StructType type = Boxes.struct(ctx.unbox(struct.getType()));<NEW_LINE>string.append("{", string.structureStyle());<NEW_LINE>int count = Math.min(type.getFieldsCount(), struct.getFieldsC...
", ", string.structureStyle());
6,354
public static void nv21ToPlanarYuv_U8(byte[] dataNV, Planar<GrayU8> output) {<NEW_LINE>GrayU8 Y = output.getBand(0);<NEW_LINE>GrayU8 <MASK><NEW_LINE>GrayU8 V = output.getBand(2);<NEW_LINE>final int uvStride = output.width / 2;<NEW_LINE>nv21ToGray(dataNV, Y);<NEW_LINE>int startUV = output.width * output.height;<NEW_LINE...
U = output.getBand(1);
5,083
public GrammarSlotTypeSource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GrammarSlotTypeSource grammarSlotTypeSource = new GrammarSlotTypeSource();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
class).unmarshall(context));
1,395,929
private static BundleEntryComponent supplyDelivery(RandomNumberGenerator rand, BundleEntryComponent personEntry, Bundle bundle, HealthRecord.Supply supply, Encounter encounter) {<NEW_LINE>SupplyDelivery supplyResource = new SupplyDelivery();<NEW_LINE>supplyResource.setStatus(SupplyDeliveryStatus.COMPLETED);<NEW_LINE>su...
quantity.setValue(supply.quantity);
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 ...
2][nr[list]];
1,439,608
protected void registerInterceptors(final IModelValidationEngine engine) {<NEW_LINE>// Event bus<NEW_LINE>engine.addModelValidator(EventBusAdempiereInterceptor.instance);<NEW_LINE>engine.addModelValidator(new org.adempiere.ad.callout.model.validator.AD_ColumnCallout());<NEW_LINE>engine.addModelValidator(new org.adempie...
model.validator.C_Tax());
536,229
final ListResourceRecordSetsResult executeListResourceRecordSets(ListResourceRecordSetsRequest listResourceRecordSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourceRecordSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
492,908
public Coordinate[][][] coordinates() {<NEW_LINE>LineStringBuilder shell = filterRing(this.shell);<NEW_LINE>LineStringBuilder[] holes = new LineStringBuilder[this.holes.size()];<NEW_LINE>// Last point is repeated<NEW_LINE>int numEdges = shell.coordinates.size() - 1;<NEW_LINE>for (int i = 0; i < this.holes.size(); i++) ...
.coordinates.size() - 1;
1,089,693
private Map<String, LocalResource> prepareResources() throws YarnFacadeException {<NEW_LINE>try {<NEW_LINE>DfsFacade dfs = new DfsFacade(config);<NEW_LINE>localized = dfs.isLocalized();<NEW_LINE>if (!localized) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>dfs.connect();<NEW_LINE>Map<String, LocalResource> resources = ne...
localizer.defineResources(resources, key);
1,701,149
public static void uploadData(List<Map<String, String>> docs, String[] parentKey) {<NEW_LINE>// added<NEW_LINE>String actionTemplate = "{ \"index\" : { \"_index\" : \"%s\", \"_type\" : \"%s\", \"_parent\" : \"%s\" } }%n";<NEW_LINE>// _parent<NEW_LINE>// node<NEW_LINE>if (null != docs && !docs.isEmpty()) {<NEW_LINE>Stri...
concatenate(doc, parentKey, "_");
1,769,427
private static String resolveHostName() {<NEW_LINE>// Ideally, we'd use InetAddress.getLocalHost, but this does a reverse DNS lookup. On Windows<NEW_LINE>// and Linux this is apparently pretty fast, so we don't get random hangs. On OS X it's<NEW_LINE>// amazingly slow. That's less than ideal. Figure things out and cach...
host = System.getenv("COMPUTERNAME");
246,697
public boolean isPreAuthorizedScope(OAuth20Provider provider, String clientId, String[] scopes) throws OAuth20Exception {<NEW_LINE>if (scopes == null || scopes.length == 0) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (provider == null) {<NEW_LINE>return...
Tr.debug(tc, "Null or no scopes provided");
932,435
private RuntimeValue<GetterAccessorsContainer> implementPathParameterValueGetters(IndexView index, ClassOutput classOutput, LinksContainer linksContainer, GetterAccessorsContainerRecorder getterAccessorsContainerRecorder, BuildProducer<BytecodeTransformerBuildItem> bytecodeTransformersProducer) {<NEW_LINE>RuntimeValue<...
.createSimple(entityType), parameterName);
298,131
final GetIdentityDkimAttributesResult executeGetIdentityDkimAttributes(GetIdentityDkimAttributesRequest getIdentityDkimAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getIdentityDkimAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,194,160
public PrefixConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PrefixConfig prefixConfig = new PrefixConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
JsonToken token = context.getCurrentToken();
161,323
private static void clearTransitPairs(final Map<Contig, List<TransitPairCount>> contigTransitsMap, final List<Contig> contigsList) {<NEW_LINE>final int lastIdx = contigsList.size() - 1;<NEW_LINE>for (int idx = 1; idx < lastIdx; ++idx) {<NEW_LINE>final List<TransitPairCount> pairCounts = contigTransitsMap.get(contigsLis...
contigsList.get(idx + 1);
1,173,458
public static BulkStringEofJudger create(byte[] data) {<NEW_LINE>int start = 0;<NEW_LINE>if (data[0] == RedisClientProtocol.DOLLAR_BYTE) {<NEW_LINE>start = 1;<NEW_LINE>}<NEW_LINE>if (arraynequals(data, 1, RedisClientProtocol.EOF, RedisClientProtocol.EOF.length)) {<NEW_LINE>if (start + RedisClientProtocol.EOF.length + B...
length - start).trim();
1,738,592
public static void drawBoxShadow(View view, String value) {<NEW_LINE>if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.M) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Log.d("BoxShadowDrawable", "drawBoxShadow");<NEW_LINE>Drawable currentBg = view.getBackground();<NEW_LINE>if (currentBg != null) {<NEW_LINE...
= new ColorDrawable(Color.TRANSPARENT);
837,983
private static List<String> searchMetaServiceClassFormURI(String url, Function<String, Boolean> acceptedFunction) {<NEW_LINE>List<String> classNameList = new ArrayList<>();<NEW_LINE>if (url.endsWith(CLASS_SUF_NAME)) {<NEW_LINE>String className = url.substring(0, url.lastIndexOf(CLASS_SUF_NAME));<NEW_LINE>int splitIndex...
className.lastIndexOf(IOUtils.DIR_SEPARATOR);
430,974
public static CdmTypeAttributeDefinition fromData(final CdmCorpusContext ctx, final JsonNode obj, final String entityName) {<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final CdmTypeAttributeDefinition typeAttribute = ctx.getCorpus().makeObject(CdmObjectType.TypeAttributeDef, obj.has("name") ?...
obj.get("maximumLength")));
681,148
protected CodeExpression readComponentCode(CodeStatement statement, CodeGroup componentCode) {<NEW_LINE>CodeExpression compExp;<NEW_LINE>CodeGroup constrCode;<NEW_LINE>LayoutConstraints constr;<NEW_LINE>// look for Container.add(Component) or Container.add(Component, Object)<NEW_LINE>if (getSimpleAddMethod().equals(sta...
[1], constrCode, compExp);
345,330
public CreateUseCaseResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateUseCaseResult createUseCaseResult = new CreateUseCaseResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
class).unmarshall(context));
97,397
public void actionPerformed(ActionEvent e) {<NEW_LINE>WizardIterator wizardIterator = new WizardIterator();<NEW_LINE>WizardDescriptor wizardDescriptor = new WizardDescriptor(wizardIterator);<NEW_LINE>wizardDescriptor.setTitleFormat(new MessageFormat("{0} ({1})"));<NEW_LINE>wizardDescriptor.setTitle(NbBundle.getMessage(...
.getValue() != WizardDescriptor.FINISH_OPTION;
1,685,598
public void init(byte[] ikm, byte[] salt) {<NEW_LINE>byte[] realSalt = salt == null ? EMPTY_ARRAY : (byte[]) salt.clone();<NEW_LINE>byte[] rawKeyMaterial = EMPTY_ARRAY;<NEW_LINE>try {<NEW_LINE>final Mac e = Mac.getInstance(this.algorithm);<NEW_LINE>if (realSalt.length == 0) {<NEW_LINE>realSalt = new byte[e.getMacLength...
throw new RuntimeException("Unexpected exception", var10);
1,549,998
public List<BankReconciliation> createAllFromBankStatement(BankStatement bankStatement) throws IOException {<NEW_LINE>List<BankReconciliation> bankReconciliationList = new ArrayList<>();<NEW_LINE>List<BankDetails> bankDetailsList = getDistinctBankDetails(bankStatement);<NEW_LINE>if (bankDetailsList == null) {<NEW_LINE>...
toDate, currency, bankDetails, bankStatement);
604,500
private void handleQueue(HttpGetCommand command, String uri) {<NEW_LINE>command.getExecutionDetails().setObjectType(QUEUE);<NEW_LINE>int indexEnd = uri.indexOf('/', URI_QUEUES.length());<NEW_LINE>String queueName = uri.substring(URI_QUEUES.length(), indexEnd);<NEW_LINE>command.getExecutionDetails().setObjectName(queueN...
, Integer.toString(size));
756,383
public void updateOffset() {<NEW_LINE>float width = getWidth();<NEW_LINE>float height = getHeight();<NEW_LINE>float localX2 = width / 2;<NEW_LINE>float localY2 = height / 2;<NEW_LINE>float localX = -localX2;<NEW_LINE>float localY = -localY2;<NEW_LINE>if (region instanceof AtlasRegion) {<NEW_LINE>AtlasRegion region = (A...
packedWidth) / region.originalHeight * height;
655,164
public RegisterUsageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RegisterUsageResult registerUsageResult = new RegisterUsageResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
"unixTimestamp").unmarshall(context));
200,976
public static <T> T executeDeclaredMethod(Object o, String methodName, Object... args) {<NEW_LINE>try {<NEW_LINE>Method method;<NEW_LINE>if (args != null && args.length > 0) {<NEW_LINE>Class<?>[] types = new Class<?>[args.length];<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>types[i] = args[i].getClass();<...
method.invoke(o, args);
1,594,498
void init(final Context m) {<NEW_LINE>master = m;<NEW_LINE>masterHandler = new Handler(m.getMainLooper());<NEW_LINE>notificationManager = (NotificationManager) <MASK><NEW_LINE>Application app;<NEW_LINE>if (m instanceof Application) {<NEW_LINE>app = (Application) m;<NEW_LINE>} else if (m instanceof Service) {<NEW_LINE>a...
master.getSystemService(Context.NOTIFICATION_SERVICE);
708,333
private void updateRowTitleEnds() {<NEW_LINE>// Determine how many tabs will fit in the given width. Use multiple rows if required.<NEW_LINE>int oldRowCount = rowTitleEnds.size();<NEW_LINE>rowTitleEnds.clear();<NEW_LINE>int rowWidth = 0;<NEW_LINE>int index = 0;<NEW_LINE>while (index < tabs.size()) {<NEW_LINE>Tab tab = ...
int tabWidth = tab.getWidth();
24,405
public CreateSoftwareUpdateJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateSoftwareUpdateJobResult createSoftwareUpdateJobResult = new CreateSoftwareUpdateJobResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
int originalDepth = context.getCurrentDepth();
1,332,388
void sendFile(Http.RequestMethod method, Path pathParam, ServerRequest request, ServerResponse response, String welcomePage) throws IOException {<NEW_LINE>LOGGER.fine(() -> "Sending static content from file: " + pathParam);<NEW_LINE>Path path = pathParam;<NEW_LINE>// we know the file exists, though it may be a director...
"File is not accessible", Http.Status.FORBIDDEN_403);
1,557,906
public String actionConformance(HttpServletRequest theServletRequest, final HomeRequest theRequest, final BindingResult theBindingResult, final ModelMap theModel) {<NEW_LINE><MASK><NEW_LINE>CaptureInterceptor interceptor = new CaptureInterceptor();<NEW_LINE>GenericClient client = theRequest.newClient(theServletRequest,...
addCommonParams(theServletRequest, theRequest, theModel);
1,775,264
private void gwFieldValueInt64VA(MethodWriterContext mwc, FieldWriter fieldWriter, int OBJECT, int i, boolean jsonb) {<NEW_LINE>MethodWriter mw = mwc.mw;<NEW_LINE>Class<?> fieldClass = fieldWriter.getFieldClass();<NEW_LINE>int FIELD_VALUE = mwc.var(fieldClass);<NEW_LINE>Label endIfNull_ = new Label(), notNull_ = new La...
TYPE_JSON_WRITER, "writeArrayNull", "()V", false);
859,181
public static List<CachableRenderStatement> computeGasOutlineToCache(@Nonnull CollidableComponent component, @Nonnull Gas gas, double scaleFactor, float width) {<NEW_LINE>Map<Gas, List<CachableRenderStatement>> cache0 = cache.computeIfAbsent(component, k -> new HashMap<>());<NEW_LINE>List<CachableRenderStatement> data ...
)) == 1 ? width : scaleFactor;
1,076,447
public boolean createThisColumn(ColumnConfig column) {<NEW_LINE>// update the column to set Default value while copying<NEW_LINE>if (column.getName().equals(statement.getColumnName())) {<NEW_LINE>if (statement.getDefaultValueConstraintName() != null) {<NEW_LINE>column.setDefaultValueConstraintName(statement.getDefaultV...
statement.getColumnDataType(), database);
1,449,567
// See http://hl7.org/fhir/valueset-filter-operator.html<NEW_LINE>private static boolean conceptMatchesFilter(ConceptDefinition concept, Set<String> classifications, Filter filter) {<NEW_LINE>String codeString = concept.getCode().getValue();<NEW_LINE>String filterValue = filter.getValue().getValue();<NEW_LINE>switch(fi...
(filterValue).contains(codeString);
273,484
public Void visitCompoundAssignment(CompoundAssignmentTree node, Void p) {<NEW_LINE>ExpressionTree var = node.getVariable();<NEW_LINE>ExpressionTree expr = node.getExpression();<NEW_LINE>AnnotatedTypeMirror <MASK><NEW_LINE>AnnotatedTypeMirror exprType = atypeFactory.getAnnotatedType(expr);<NEW_LINE>Tree.Kind kind = nod...
varType = atypeFactory.getAnnotatedType(var);
1,024,374
public MHRMovement saveMovement() {<NEW_LINE>MHRConcept concept = MHRConcept.getById(Env.getCtx(), getConceptId(), null);<NEW_LINE>MHRMovement movement = new MHRMovement(Env.getCtx(), movementId, null);<NEW_LINE>I_HR_Period payrollPeriod = getPayrollProcess().getHR_Period();<NEW_LINE>movement.setSeqNo(concept.getSeqNo(...
setAmount((BigDecimal) amount));
1,760,629
SimpleLookupTable directoryTable(String qualifiedPackageName) {<NEW_LINE>SimpleLookupTable dirTable = (SimpleLookupTable) <MASK><NEW_LINE>// package exists in another classpath directory or jar<NEW_LINE>if (dirTable == this.missingPackageHolder)<NEW_LINE>return null;<NEW_LINE>if (dirTable != null)<NEW_LINE>return dirTa...
this.directoryCache.get(qualifiedPackageName);
1,586,399
public static Message.Value.Builder createValueFromType(Object value, Message.VariantType variantType, CompilerConfig compilerConfig) {<NEW_LINE>Message.Value.Builder valueBuilder = Message.Value.newBuilder();<NEW_LINE>switch(variantType) {<NEW_LINE>case VT_INT:<NEW_LINE>valueBuilder.setIntValue(Integer.class.cast(valu...
" type=>" + variantType.toString());
1,226,048
final ListOfferingsResult executeListOfferings(ListOfferingsRequest listOfferingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOfferingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListOfferings");
1,038,629
public void writeReference(Reference ref) {<NEW_LINE>// DD = definition description<NEW_LINE>Element classdd = htmldoc.createElement(HTMLUtil.HTML_DD_TAG);<NEW_LINE>maindl.appendChild(classdd);<NEW_LINE>// Prefix<NEW_LINE>if (!ref.prefix().isEmpty()) {<NEW_LINE>Element prediv = htmldoc.createElement(HTMLUtil.HTML_DIV_T...
htmldoc.createElement(HTMLUtil.HTML_DIV_TAG);
623,959
public boolean isCompatible(DLNAResource resource) {<NEW_LINE>Format format = resource.getFormat();<NEW_LINE>if (format != null) {<NEW_LINE>if (format.getIdentifier() == Format.Identifier.WEB) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>DLNAMediaSubtitle subtitle = resource.getMediaSubtitle();<NEW_LINE>// C...
"AviSynth/MEncoder cannot determine compatibility based on default audio track for " + resource.getSystemName());
7,514
private Mono<ResourceResponse<User>> replaceUserInternal(User user, RequestOptions options, DocumentClientRetryPolicy retryPolicyInstance) {<NEW_LINE>try {<NEW_LINE>if (user == null) {<NEW_LINE>throw new IllegalArgumentException("user");<NEW_LINE>}<NEW_LINE>logger.debug("Replacing a User. user id [{}]", user.getId());<...
user.getSelfLink(), null);
517,840
protected String createJspId(JspVisitorInputMap inputMap) throws JspCoreException {<NEW_LINE>String jspIdPrefix = ((String) inputMap.get("JspIdConsumerPrefix"));<NEW_LINE>if (jspIdPrefix == null) {<NEW_LINE>JspResources jspFiles = (JspResources) inputMap.get("JspFiles");<NEW_LINE>// PM43852 start - change to use packag...
StringBuffer sb = new StringBuffer(32);
469,794
private static void addSubProducer(final List<KeyNamePair> subProducerBPartners, final Properties ctx, final int bpartnerId) {<NEW_LINE>if (bpartnerId <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// Check if our BPartner is already in the list.<NEW_LINE>// If yes, there is no point to add it.<NEW_LINE>if (s...
final KeyNamePair bpartnerKNP = toKeyNamePair(bpartner);
1,321,907
public List<Map<String, Object>> executeFix() throws DotDataException, DotRuntimeException {<NEW_LINE>List<Map<String, Object>> returnValue = new ArrayList<Map<String, Object>>();<NEW_LINE>Logger.info(CMSMaintenanceFactory.class, "Beginning fixAssetsInconsistencies");<NEW_LINE>int counter = 0;<NEW_LINE>final String fix...
> contentletIds = db.getResults();
889,454
public void merge(AggregationBuffer agg, Object partial) throws HiveException {<NEW_LINE>// //LOG.info(" MERGE IS CALLED partial is " + partial + " AGG is " + agg);<NEW_LINE>List partialResultList = internalMergeOI.getList(partial);<NEW_LINE>if (daysArr == null) {<NEW_LINE>daysArr = new Integer[partialResultList.size(...
] = Integer.decode(numDaysStr);
1,504,889
protected String doIt() throws Exception {<NEW_LINE>final I_M_Product product = productDAO.getById(getRecord_ID());<NEW_LINE>final IQueryBL queryBL = <MASK><NEW_LINE>final IQueryFilter<I_M_Product> productFilter = queryBL.createCompositeQueryFilter(I_M_Product.class).addOnlyActiveRecordsFilter().addCompareFilter(I_M_Pr...
Services.get(IQueryBL.class);
821,952
List<point> CH(List<point> P) {<NEW_LINE>int i, j, n = (int) P.size();<NEW_LINE>if (n <= 3) {<NEW_LINE>// safeguard from corner case<NEW_LINE>if (P.get(0).compareTo(P.get(n - 1)) != 0)<NEW_LINE>P.add(P.get(0));<NEW_LINE>// special case, the CH is P itself<NEW_LINE>return P;<NEW_LINE>}<NEW_LINE>// first, find P0 = point...
) < 0 ? -1 : 1;
1,277,457
public static Properties replaceUseBlackUIProperty(@NonNull Properties properties) {<NEW_LINE>String useBlackUIStringValue = <MASK><NEW_LINE>if (useBlackUIStringValue == null)<NEW_LINE>return properties;<NEW_LINE>Logger.logWarn(LOG_TAG, "Removing deprecated property " + TermuxPropertyConstants.KEY_USE_BLACK_UI + "=" + ...
properties.getProperty(TermuxPropertyConstants.KEY_USE_BLACK_UI);
395,066
private void loadCalendars() {<NEW_LINE>calendars.clear();<NEW_LINE>calendarNames.clear();<NEW_LINE>calendars.addAll(calendarProvider.getCalendars());<NEW_LINE>if (calendars.isEmpty()) {<NEW_LINE>Toast.makeText(getActivity(), R.string.no_calendars_found, Toast.LENGTH_LONG).show();<NEW_LINE>dismiss();<NEW_LINE>} else {<...
0 : calendarNames.indexOf(selected);
1,155,624
public void createDisposeCandidatesInTrx(@NonNull final HuId huId, @NonNull final QtyRejectedReasonCode reasonCode) {<NEW_LINE>final I_M_HU hu = handlingUnitsBL.getById(huId);<NEW_LINE>if (!huStatusBL.isQtyOnHand(hu.getHUStatus())) {<NEW_LINE>throw new AdempiereException("Invalid HU status: " + hu.getHUStatus());<NEW_L...
get(huProductStorage.getProductId());
306,778
public static void updateProjectClassPath(AntProjectHelper helper, ReferenceHelper refHelper, ProjectImportModel model, List<String> importProblems) throws IOException {<NEW_LINE>{<NEW_LINE>// #147126: force recalc of source groups; otherwise project may not have claimed ownership of external roots.<NEW_LINE>// NOI18N<...
.getEclipseSourceRootsAsFileArray()[0]);
387,452
public void testAnnotationJavamailSessionCreated() throws Throwable {<NEW_LINE>if (jm2 != null) {<NEW_LINE>Properties props = jm2.getProperties();<NEW_LINE>System.out.println(<MASK><NEW_LINE>// Validate we got the session we expected<NEW_LINE>String userValue = jm2.getProperty("mail.user");<NEW_LINE>if (!("jm2test").eq...
"JavamailFATServlet.testAnnotationJavamailSessionCreated properties : " + props.toString());
1,787,045
static Interface connectGatewayToVpc(String gatewayId, Configuration gatewayCfg, String vpcId, ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) {<NEW_LINE>Vpc vpc = region.getVpcs().get(vpcId);<NEW_LINE>if (vpc == null) {<NEW_LINE>warnings.redFlag(String.format("VPC with id %s not found in reg...
, region.getName()));
1,543,545
public static AclLineMatchExpr toAclLineMatchExpr(PacketHeaderConstraints phc, IpSpace srcIpSpace, IpSpace dstIpSpace) {<NEW_LINE>List<AclLineMatchExpr> conjuncts = Stream.of(matchSrc(srcIpSpace), matchDst(dstIpSpace), dscpsToAclLineMatchExpr(phc.getDscps()), ecnsToAclLineMatchExpr(phc.getEcns()), packetLengthToAclLine...
collect(ImmutableList.toImmutableList());