idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
414,450
public static ListInstancesResponse unmarshall(ListInstancesResponse listInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInstancesResponse.setRequestId(_ctx.stringValue("ListInstancesResponse.RequestId"));<NEW_LINE>listInstancesResponse.setTotalCount(_ctx.integerValue("ListInstancesResponse.TotalCount"));<N...
+ "].ApplicableOperations[" + j + "]"));
101,280
private boolean validateFields() {<NEW_LINE>String tname = teamnameField.getText();<NEW_LINE>if (StringUtils.isEmpty(tname)) {<NEW_LINE>error("Please enter a team name!");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean rename = false;<NEW_LINE>// verify teamname uniqueness on create<NEW_LINE>if (isCreate) {<NEW_LIN...
.canFork = canForkCheckbox.isSelected();
1,519,253
public void run(WorkingCopy workingCopy) throws Exception {<NEW_LINE>workingCopy.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>Element elem = elementHandle.resolve(workingCopy);<NEW_LINE>if (elem != null) {<NEW_LINE>Tree tree = workingCopy.getTrees().getTree(elem);<NEW_LINE>TreeMaker make = workingCopy.getTreeMaker();<N...
).getTypeElement(JPAAnnotations.TEMPORAL);
1,437,352
public void actionPerformed(ActionEvent e) {<NEW_LINE>if (e.getSource() instanceof JComponent) {<NEW_LINE>JComponent btn = (JComponent) e.getSource();<NEW_LINE>String name = btn.getName();<NEW_LINE>switch(name) {<NEW_LINE>case "CLOSE":<NEW_LINE>onClosed();<NEW_LINE>break;<NEW_LINE>case "FORMAT_SELECT":<NEW_LINE>fmtWnd....
item = model.getElementAt(i);
174,265
protected Enumeration<URL> findResources(String res) throws IOException {<NEW_LINE>List<URL> resources = new ArrayList<URL>();<NEW_LINE><MASK><NEW_LINE>res = deslashResource(res);<NEW_LINE>String entryRes = res;<NEW_LINE>if (File.separatorChar != SLASH_CHAR) {<NEW_LINE>res = res.replace(SLASH_CHAR, File.separatorChar);...
PySystemState sys = Py.getSystemState();
322,698
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>OsmandApplication app = requiredMyApplication();<NEW_LINE>plugin = OsmandPlugin.getPlugin(OsmEditingPlugin.class);<NEW_LINE>LayoutInflater themedInflater = UiUtilities.getInflater(app, nightMode);<NEW_LINE>View sendGpxView = themedInflater.inflate(R.layo...
setText(selectedUploadVisibility.getTitleId());
843,614
public JSONObject jsonSerialise() {<NEW_LINE>JSONObject json = super.jsonSerialise();<NEW_LINE>json.put("direction", getDirection().ordinal());<NEW_LINE>CubotInventory inv = (<MASK><NEW_LINE>int heldItem = inv.getInventory().getOrDefault(inv.getPosition(), new ItemVoid()).getId();<NEW_LINE>json.put("heldItem", heldItem...
CubotInventory) getHardware(CubotInventory.class);
1,684,744
private void fillContentValues(ContentValues contentValues) {<NEW_LINE>contentValues.put(JobStorage.COLUMN_ID, mId);<NEW_LINE>contentValues.put(JobStorage.COLUMN_TAG, mTag);<NEW_LINE>contentValues.put(JobStorage.COLUMN_START_MS, mStartMs);<NEW_LINE>contentValues.put(JobStorage.COLUMN_END_MS, mEndMs);<NEW_LINE>contentVa...
put(JobStorage.COLUMN_EXTRAS, mExtrasXml);
1,086,111
public void submitTicket(LotteryService service, Scanner scanner) {<NEW_LINE>logger.info("What is your email address?");<NEW_LINE>var email = readString(scanner);<NEW_LINE>logger.info("What is your bank account number?");<NEW_LINE>var account = readString(scanner);<NEW_LINE>logger.info("What is your phone number?");<NE...
LotteryTicketId(), details, lotteryNumbers);
1,742,832
public VanityUrl fromContentlet(final Contentlet contentlet) {<NEW_LINE>if (contentlet == null) {<NEW_LINE>throw new DotStateException("Contentlet cannot be null");<NEW_LINE>}<NEW_LINE>if (!contentlet.isVanityUrl()) {<NEW_LINE>throw new DotStateException(String.format("Contentlet with Inode '%s' is not a Vanity Url", c...
vanityUrl, contentlet.getMap());
1,589,838
public static Bitmap hookDecodeFileDescriptor(FileDescriptor fd, @Nullable Rect outPadding, @Nullable BitmapFactory.Options opts) {<NEW_LINE>StaticWebpNativeLoader.ensure();<NEW_LINE>Bitmap bitmap;<NEW_LINE>long originalSeekPosition = nativeSeek(fd, 0, false);<NEW_LINE>if (originalSeekPosition != -1) {<NEW_LINE>InputSt...
header = getWebpHeader(inputStream, opts);
1,021,439
final GetOriginRequestPolicyConfigResult executeGetOriginRequestPolicyConfig(GetOriginRequestPolicyConfigRequest getOriginRequestPolicyConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getOriginRequestPolicyConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetOriginRequestPolicyConfig");
711,347
private void trySendEscToDialog() {<NEW_LINE>if (isTableUI()) {<NEW_LINE>// let the table decide, don't be preemptive<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// System.err.println("SendEscToDialog");<NEW_LINE>EventObject ev = EventQueue.getCurrentEvent();<NEW_LINE>if (ev instanceof KeyEvent && (((KeyEvent) ev).getKeyCode(...
err.println("Action bound to escape key is " + a);
1,245,321
private void uploadParts() {<NEW_LINE>// exit if multipart has not been initiated<NEW_LINE>if (multipartUploadId == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// do not upload the file currently being written<NEW_LINE>stagingFiles.stream().filter(// do not upload any files that have already been processed<NEW_LINE>f ...
S3RequestUtil.configureEncryption(awsProperties, requestBuilder);
1,521,766
public final JMenuItem createCopyMenuItem() {<NEW_LINE>final int row = getSelectedRow();<NEW_LINE>// NOI118N<NEW_LINE>JMenu copyItem = new JMenu(BUNDLE().getString("ProfilerTable_CopyMenu"));<NEW_LINE>JMenuItem copyRowItem = new // NOI118N<NEW_LINE>// NOI118N<NEW_LINE>JMenuItem(BUNDLE().getString("ProfilerTable_CopyRow...
).setContents(s, s);
814,676
protected String constructCacheFileName(StaticAsset staticAsset, Map<String, String> parameterMap) {<NEW_LINE>String fileName = staticAsset.getFullUrl();<NEW_LINE>StringBuilder sb = new StringBuilder(200);<NEW_LINE>sb.append(fileName.substring(0, fileName.lastIndexOf('.')));<NEW_LINE>sb.append("---");<NEW_LINE>StringBu...
append(entry.getValue());
433,208
public void handle(Callback[] callbacks) throws UnsupportedCallbackException {<NEW_LINE>NameCallback nc = null;<NEW_LINE>PasswordCallback pc = null;<NEW_LINE>RealmCallback rc = null;<NEW_LINE>for (Callback callback : callbacks) {<NEW_LINE>if (callback instanceof RealmChoiceCallback) {<NEW_LINE>continue;<NEW_LINE>} else...
"SASL client callback: setting realm: {}", rc.getDefaultText());
793,880
private View createCurrentMemberRow(String name, String value) {<NEW_LINE>LinearLayout row = (LinearLayout) getLayoutInflater().inflate(R.layout.widget_icon_text_button_row, null);<NEW_LINE>ImageView icon = (ImageView) row.findViewById(R.id.widget_itbr_icon);<NEW_LINE>TextView label = (TextView) row.findViewById(R.id.w...
+ AbstractFragment.truncateToShortString(value));
1,573,773
static void autoboxArguments(List<Type> types, List<Value> argVals, ThreadReference evaluationThread, EvaluationContext evaluationContext) throws InvalidTypeException, ClassNotLoadedException, IncompatibleThreadStateException, InvocationException {<NEW_LINE>if (types.size() != argVals.size()) {<NEW_LINE>return;<NEW_LIN...
v = argVals.get(i);
1,225,777
public void secureDeployment(DeploymentInfo deploymentInfo) {<NEW_LINE>LoginConfig loginConfig = new LoginConfig("OpenRemote");<NEW_LINE>// Make it silent to prevent 401 WWW-Authenticate modal dialog<NEW_LINE>deploymentInfo.addAuthenticationMechanism("BASIC-FIX", BasicFixAuthenticationMechanism.FACTORY);<NEW_LINE>login...
singletonMap("silent", "true")));
930,190
protected void encodeMessage(ResponseWriter writer, Messages uiMessages, FacesMessage message, String styleClassPrefix, boolean escape) throws IOException {<NEW_LINE>writer.startElement("li", null);<NEW_LINE>writer.writeAttribute("role", "alert", null);<NEW_LINE>writer.writeAttribute(HTML.ARIA_ATOMIC, "true", null);<NE...
"class", styleClassPrefix + "-detail", null);
832,755
private void addHttp1Handlers(ChannelPipeline p) {<NEW_LINE>p.addLast(ChannelPipelineCustomizer.HANDLER_HTTP_CLIENT_CODEC, new HttpClientCodec());<NEW_LINE>p.addLast(ChannelPipelineCustomizer<MASK><NEW_LINE>int maxContentLength = configuration.getMaxContentLength();<NEW_LINE>if (!stream) {<NEW_LINE>p.addLast(ChannelPip...
.HANDLER_HTTP_DECODER, new HttpContentDecompressor());
1,255,323
public ImmutableSet<BPartnerId> retrieveBPartnerIdsBy(@NonNull final BPartnerQuery query) {<NEW_LINE>final IQueryBuilder<I_C_BPartner> queryBuilder = createQueryBuilder(I_C_BPartner.class);<NEW_LINE>if (!query.getOnlyOrgIds().isEmpty()) {<NEW_LINE>queryBuilder.addInArrayFilter(I_C_BPartner.COLUMNNAME_AD_Org_ID, query.g...
addInArrayFilter(I_C_BPartner.COLUMN_C_BPartner_ID, bpartnerIdsForGLN);
117,810
private void teleport(final IUser teleportee, final ITarget target, final Trade chargeFor, final TeleportCause cause) throws Exception {<NEW_LINE>double delay = ess.getSettings().getTeleportDelay();<NEW_LINE>final TeleportWarmupEvent event = new TeleportWarmupEvent(teleportee, cause, target, delay);<NEW_LINE>Bukkit.get...
target, cashCharge, cause, false);
1,244,527
private void assertEqualsAndHashCodeRelyOnSameFields(boolean equalsChanged, boolean hashCodeChanged, T reference, T changed, String fieldName) {<NEW_LINE>if (equalsChanged != hashCodeChanged) {<NEW_LINE>boolean skipEqualsHasMoreThanHashCodeTest = warningsToSuppress.contains(Warning.STRICT_HASHCODE) || skipCertainTestsT...
changed, changed.hashCode());
932,633
public void saveLatestSystemStateVersion(DatabaseContext databaseContext, int version) throws InterruptedException {<NEW_LINE>fleetControllerContext.log(logger, Level.FINE, () -> "Checking if latest system state version has been updated and need to be stored.");<NEW_LINE>// Schedule a write if one of the following is t...
) -> "Scheduling new last system state version " + version + " to be stored in zookeeper.");
424,549
public void annotate(Annotation annotation) {<NEW_LINE>if (verbose) {<NEW_LINE>Redwood.log(Redwood.DBG, "Adding TokensRegexAnnotator annotation...");<NEW_LINE>}<NEW_LINE>if (options.setTokenOffsets) {<NEW_LINE>addTokenOffsets(annotation);<NEW_LINE>}<NEW_LINE>// just do nothing if no extractor is specified<NEW_LINE>if (...
set(options.matchedExpressionsAnnotationKey, allMatched);
1,734,495
private String initialize() {<NEW_LINE>int defaultRefresh = GlobalPreferences.sharedInstance<MASK><NEW_LINE>processor = getTimer();<NEW_LINE>heapTimer = new Timer(defaultRefresh, new ActionListener() {<NEW_LINE><NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>heapRefresher.refresh();<NEW_LINE>}<NEW_LINE>...
().getMonitoredDataPoll() * 1000;
1,645,255
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {<NEW_LINE>Constant cst = this.left.optimizedBooleanConstant();<NEW_LINE>boolean isLeftOptimizedTrue = cst != Constant.NotAConstant && cst.booleanValue() == true;<NEW_LINE>boolean isLeftOptimizedFalse = cst != Constant.NotA...
methodScope().recordInitializationStates(mergedInfo);
349,913
public static String toStringHadoopFileStatus(FileStatus fs) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("HadoopFileStatus: Path: ").append(fs.getPath());<NEW_LINE>sb.append(" , Length: ").append(fs.getLen());<NEW_LINE>// Use isDir instead of isDirectory for compatibility with hadoop 1.<NEW_LI...
append(fs.getBlockSize());
113,197
boolean match(Matcher matcher, int i, CharSequence seq) {<NEW_LINE>int savedFrom = matcher.from;<NEW_LINE>boolean conditionMatched = false;<NEW_LINE>int startIndex = (!matcher.transparentBounds) ? matcher.from : 0;<NEW_LINE>int from = Math.max(i - rmax, startIndex);<NEW_LINE>// Set end boundary<NEW_LINE>int savedLBT = ...
match(matcher, i, seq);
1,155,168
public // snippet-start:[s3.java1.s3_encrypt.kms_authenticated_encryption]<NEW_LINE>void authenticatedEncryption_KmsManagedKey() throws NoSuchAlgorithmException {<NEW_LINE>// snippet-start:[s3.java1.s3_encrypt.kms_authenticated_encryption_builder]<NEW_LINE>AmazonS3Encryption s3Encryption = // Can either be Key ID or al...
("alias/s3-kms-key")).build();
1,809,374
public static void main(String[] args) throws IOException {<NEW_LINE>Exchange krakenExchange = KrakenExampleUtils.createTestExchange();<NEW_LINE>KrakenAccountServiceRaw rawKrakenAcctService = (KrakenAccountServiceRaw) krakenExchange.getAccountService();<NEW_LINE>KrakenTradeBalanceInfo balanceInfo = rawKrakenAcctService...
System.out.println(tradeVolume);
215,303
public void incLiveness(final String userId, final String field) {<NEW_LINE>Stopwatchs.start("Inc liveness");<NEW_LINE>final String date = DateFormatUtils.format(System.currentTimeMillis(), "yyyyMMdd");<NEW_LINE>try {<NEW_LINE>JSONObject liveness = livenessRepository.getByUserAndDate(userId, date);<NEW_LINE>if (null ==...
(Keys.OBJECT_ID), liveness);
172,862
public void widgetSelected(SelectionEvent event) {<NEW_LINE>final TableItem[] selection = buddy_table.getSelection();<NEW_LINE>UIInputReceiver prompter = ui_instance.getInputReceiver();<NEW_LINE>prompter.setLocalisedTitle(lu.getLocalisedMessageText("azbuddy.ui.menu.send"));<NEW_LINE>prompter.setLocalisedMessage(lu.getL...
).sendAZ2Message(buddy, text);
1,550,634
private static void testAnnotationInjectedEMF(final EntityManagerFactory emf, final String testqualifier) throws Throwable {<NEW_LINE>System.out.println(EYECATCHER + " Starting testAnnotationInjectedEMF_" + testqualifier + "...");<NEW_LINE>EntityManager em = null;<NEW_LINE>try {<NEW_LINE>em = emf.createEntityManager();...
.getTransaction().begin();
1,054,071
public static void main(String[] argv) throws Exception {<NEW_LINE>if (argv.length < 1) {<NEW_LINE>System.err.println("Usage: " + JUnitJarRunner.class.getName() + " [-textui|-swingui]" + " <test suite jar file> [<classpath with code to test>]");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>String how = "-textui";<NEW_L...
String jarFileName = argv[arg++];
318,574
private List<SingleRangePartitionDesc> buildNumberTypePartition(Map<String, String> properties) throws AnalysisException {<NEW_LINE>if (this.getTimeUnit() != null) {<NEW_LINE>throw new AnalysisException("Batch build partition EVERY is date type " + "but START or END does not type match.");<NEW_LINE>}<NEW_LINE>long begi...
beginNum = Long.parseLong(partitionBegin);
154,359
public static void partialReduceFloatMin(float[] inputArray, float[] outputArray, int gidx) {<NEW_LINE>int localIdx = PTXIntrinsics.get_local_id(0);<NEW_LINE>int localGroupSize = PTXIntrinsics.get_local_size(0);<NEW_LINE>int groupID = PTXIntrinsics.get_group_id(0);<NEW_LINE>float[] localArray = (float[]) NewArrayNode.n...
, localArray[localIdx + stride]);
940,211
TruffleString utf32TranscodeUTF16(AbstractTruffleString a, Object arrayA, int codePointLengthA, int codeRangeA, @SuppressWarnings("unused") int targetEncoding, @Cached @Shared("iteratorNextNode") TruffleStringIterator.NextNode iteratorNextNode) {<NEW_LINE>assert containsAstralCodePoint(a, arrayA, codeRangeA);<NEW_LINE>...
= new byte[codePointLengthA << 2];
1,005,803
private static void defineRealBody(SkinnyMethodAdapter mv, final String pathName, final String simpleName, final Class[] paramTypes, final Class returnType, final int baseIndex, final int cacheIndex, final Set<String> nameSet) {<NEW_LINE>final int rubyIndex = baseIndex + 1;<NEW_LINE>mv.line(5);<NEW_LINE>// prepare temp...
, sig(Ruby.class));
610,444
private Predicate toFilterPredicate(EffectivePerson effectivePerson, Business business, Wi wi) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Message.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_L...
wi.getStartTime())));
1,031,403
private static void patchLombokizeAST(ScriptManager sm) {<NEW_LINE>sm.addScript(ScriptBuilder.addField().targetClass("org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration").fieldName("$lombokAST").fieldType("Ljava/lang/Object;").setPublic().setTransient().build());<NEW_LINE>final String PARSER_SIG = "org.ec...
.PARAM1).build());
1,480,264
public void loadScript(File script, boolean fireEvent, List<String> loadPaths) {<NEW_LINE>if (script == null) {<NEW_LINE>ScriptLogger.logError(Messages.BundleManager_Executed_Null_Script);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!script.canRead()) {<NEW_LINE>ScriptLogger.logError(MessageFormat.format(Messages.BundleMa...
, script.getAbsolutePath()));
1,036,155
public <T extends TransformParameters> void registerTransform(Class<? extends TransformAction<T>> actionType, Action<? super TransformSpec<T>> registrationAction) {<NEW_LINE>try {<NEW_LINE>Class<T> parameterType = isolationScheme.parameterTypeFor(actionType);<NEW_LINE>T parameterObject = parameterType == null ? null : ...
register(registration, actionType, parameterObject);
964,321
private static void registerUnsignedMathPlugins(InvocationPlugins plugins) {<NEW_LINE>Registration r = new Registration(plugins, UnsignedMath.class);<NEW_LINE>r.register(new UnsignedMathPlugin(Condition.AT, "aboveThan", int.class, int.class));<NEW_LINE>r.register(new UnsignedMathPlugin(Condition.AT, "aboveThan", long.c...
.class, long.class));
1,407,226
public static DescribeFabricChannelMembersResponse unmarshall(DescribeFabricChannelMembersResponse describeFabricChannelMembersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFabricChannelMembersResponse.setRequestId(_ctx.stringValue("DescribeFabricChannelMembersResponse.RequestId"));<NEW_LINE>describeFabricChan...
("DescribeFabricChannelMembersResponse.Result[" + i + "].WithPeer"));
1,187,106
private void updateData() {<NEW_LINE>data.setPackageName(comPackageName.getEditor().getItem().toString());<NEW_LINE>String icon = txtIcon.getText().trim();<NEW_LINE>data.setIcon(icon.length() == 0 ? (String) null : icon);<NEW_LINE>data.setName(txtPrefix.getText().trim());<NEW_LINE>HTMLIterator.generateFileChanges(data)...
().getCreatedPaths()));
553,049
public void loginAsync(long accountId, String passwordTemp, long providerId, boolean retry) {<NEW_LINE>mAccountId = accountId;<NEW_LINE>mPassword = passwordTemp;<NEW_LINE>mProviderId = providerId;<NEW_LINE>mRetryLogin = retry;<NEW_LINE>ContentResolver contentResolver = mContext.getContentResolver();<NEW_LINE>if (mPassw...
contentResolver, mProviderId, false, null);
128,444
private final void drawLineOrPoints(boolean xIsDescription, Double[][] values, int sourceAxisPos, int valueAxisPos, Double valueSegment, int descSegment, List<String> colors, boolean line) {<NEW_LINE>Theme currentTheme = ThemeFactory.getCurrentTheme();<NEW_LINE>int cIndex = 0;<NEW_LINE>for (int valueIndex = 0; valueInd...
points.get(i + 1);
542,217
private ConfigCenterConfig registryAsConfigCenter(RegistryConfig registryConfig) {<NEW_LINE>String protocol = registryConfig.getProtocol();<NEW_LINE>Integer port = registryConfig.getPort();<NEW_LINE>URL url = URL.valueOf(registryConfig.getAddress(), registryConfig.getScopeModel());<NEW_LINE>String id = "config-center-"...
setPassword(registryConfig.getPassword());
1,331,472
public static GrayU8 localMean(GrayF32 input, GrayU8 output, ConfigLength width, float scale, boolean down, GrayF32 storage1, GrayF32 storage2, @Nullable GrowArray<DogArray_F32> storage3) {<NEW_LINE>int radius = width.computeI(Math.min(input.width, input.height)) / 2;<NEW_LINE>GrayF32 mean = storage1;<NEW_LINE>BlurImag...
threshold ? (byte) 1 : 0;
450,284
private void loadContent() {<NEW_LINE>if (content == null) {<NEW_LINE>throw new NullPointerException("The content is accessed after the zip file is closed: " + path());<NEW_LINE>}<NEW_LINE>if (contentLoaded) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>contentLoaded = true;<NEW_LINE>// We support both gzip and unzipped files...
ByteArrayOutputStream buf = new ByteArrayOutputStream(4048);
449,038
public Parent createContent() {<NEW_LINE>xAxis = new NumberAxis(0, 24, 3);<NEW_LINE>final NumberAxis yAxis = new NumberAxis(0, 100, 10);<NEW_LINE>chart = new LineChart<>(xAxis, yAxis);<NEW_LINE>// setup chart<NEW_LINE>final String stockLineChartCss = getClass().getResource("StockLineChart.css").toExternalForm();<NEW_LI...
minuteDataSeries = new Series<>();
1,312,869
private void exportSites(final Path target) throws FrameworkException {<NEW_LINE>logger.info("Exporting sites");<NEW_LINE>final List<Map<String, Object>> sites = new LinkedList<>();<NEW_LINE>final App app = StructrApp.getInstance();<NEW_LINE>try (final Tx tx = app.tx()) {<NEW_LINE>for (final Site site : app.nodeQuery(S...
entry.put("pages", pageNames);
813,481
protected Map<String, String> extractExternalSystemParameters(@NonNull final ExternalSystemParentConfig externalSystemParentConfig) {<NEW_LINE>final ExternalSystemWooCommerceConfig woocommerceConfig = ExternalSystemWooCommerceConfig.<MASK><NEW_LINE>if (EmptyUtil.isEmpty(woocommerceConfig.getCamelHttpResourceAuthKey()))...
cast(externalSystemParentConfig.getChildConfig());
13,788
public void attach(@NonNull final String mode, @NonNull final ClusteredIndexables ci) {<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("mode", mode);<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("ci", ci);<NEW_LINE>if (TransientUpdateSupport.isTransientUpdate()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (DELETE.equal...
currentThread().getStackTrace());
1,379,396
public String treeString() {<NEW_LINE>Function<Object, String> toString = obj -> {<NEW_LINE>if (obj instanceof Group) {<NEW_LINE>return obj.toString();<NEW_LINE>} else if (obj instanceof GroupExpression) {<NEW_LINE>return ((GroupExpression) obj).getPlan().toString();<NEW_LINE>} else if (obj instanceof Pair) {<NEW_LINE>...
GroupExpression>>) obj).second;
1,581,391
public Result create(UUID customerUUID) throws IOException {<NEW_LINE>JsonNode requestBody = request().body().asJson();<NEW_LINE>Provider reqProvider = formFactory.getFormDataOrBadRequest(requestBody, Provider.class);<NEW_LINE>Customer customer = Customer.getOrBadRequest(customerUUID);<NEW_LINE>reqProvider.customerUUID...
(), getFirstRegionCode(reqProvider));
1,241,603
public void processReInvite(ServerTransaction serverTransaction) {<NEW_LINE>Request invite = serverTransaction.getRequest();<NEW_LINE>setLatestInviteTransaction(serverTransaction);<NEW_LINE>// SDP description may be in ACKs - bug report Laurent Michel<NEW_LINE>String sdpOffer = null;<NEW_LINE>ContentLengthHeader cl = i...
getMediaHandler().processOffer(sdpOffer);
654,448
public void translate(Properties ctx) {<NEW_LINE>if (m_originalString == null)<NEW_LINE>return;<NEW_LINE>String inText = Msg.parseTranslation(ctx, m_originalString);<NEW_LINE>// log.fine( "StringElement.translate", inText);<NEW_LINE>String[] lines = Pattern.compile("$", Pattern.MULTILINE).split(inText);<NEW_LINE>m_stri...
= new AttributedString[lines.length];
1,395,697
RangeMap<Integer, Range<Integer>> parsePartitions(final List<? extends Number> gqPartitions) {<NEW_LINE>Utils.nonEmpty(gqPartitions);<NEW_LINE>Utils.containsNoNull(gqPartitions, "The list of GQ partitions contains a null integer");<NEW_LINE>final RangeMap<Integer, Range<Integer>> result = TreeRangeMap.create();<NEW_LIN...
(lastThreshold, MAX_GENOTYPE_QUAL + 1));
221,411
static ByteBuf encodeFirstFragment(ByteBufAllocator allocator, int mtu, long initialRequestN, FrameType frameType, int streamId, boolean hasMetadata, ByteBuf metadata, ByteBuf data) {<NEW_LINE>// subtract the header bytes + frame length bytes + initial requestN bytes<NEW_LINE>int remaining = mtu - FRAME_OFFSET_WITH_INI...
true, initialRequestN, metadataFragment, dataFragment);
1,143,684
private void atWhileStmnt(Stmnt st, boolean notDo) throws CompileError {<NEW_LINE>List<Integer> prevBreakList = breakList;<NEW_LINE>List<Integer> prevContList = continueList;<NEW_LINE>breakList = new ArrayList<Integer>();<NEW_LINE>continueList = new ArrayList<Integer>();<NEW_LINE>ASTree expr = st.head();<NEW_LINE>Stmnt...
int pc2 = bytecode.currentPc();
1,809,265
private CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst) {<NEW_LINE>byte[] sa = src.array();<NEW_LINE>int sp = src.arrayOffset() + src.position();<NEW_LINE>int sl = src.arrayOffset() + src.limit();<NEW_LINE>assert (sp <= sl);<NEW_LINE>sp = (sp <= sl ? sp : sl);<NEW_LINE>char[] da = dst.array();<NEW_LINE>int ...
sp - src.arrayOffset());
461,058
final CopyPackageVersionsResult executeCopyPackageVersions(CopyPackageVersionsRequest copyPackageVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copyPackageVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,557,945
public void render(final Tag parent) {<NEW_LINE>final Map<String, List<Setting>> mapped = new LinkedHashMap<>();<NEW_LINE>final List<Setting> otherSettings = new LinkedList<>();<NEW_LINE>final Tag div = parent.block("div");<NEW_LINE>// sort / categorize settings<NEW_LINE>for (final Setting setting : settings) {<NEW_LIN...
("div").css("config-group");
977,434
public EvaluationResult evaluate(Bean bean, CalculationFunctions functions, String firstToken, List<String> remainingTokens) {<NEW_LINE>Optional<String> propertyName = bean.propertyNames().stream().filter(p -> p.equalsIgnoreCase<MASK><NEW_LINE>if (propertyName.isPresent()) {<NEW_LINE>Object propertyValue = bean.propert...
(firstToken)).findFirst();
843,412
private SegmentsAndCommitMetadata pushAndClear(Collection<String> sequenceNames, long pushAndClearTimeoutMs) throws InterruptedException, ExecutionException, TimeoutException {<NEW_LINE>final Set<SegmentIdWithShardSpec> requestedSegmentIdsForSequences = getAppendingSegments(sequenceNames);<NEW_LINE>final ListenableFutu...
"Can't find pushedSegments for segment[%s]", appendingSegment.getSegmentIdentifier());
1,350,551
final DescribeDashboardPermissionsResult executeDescribeDashboardPermissions(DescribeDashboardPermissionsRequest describeDashboardPermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDashboardPermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
57,303
protected Authentication doInternalAuthenticate(LoginCredential loginCredential) {<NEW_LINE>_logger.debug("authentication " + loginCredential);<NEW_LINE>sessionValid(loginCredential.getSessionId());<NEW_LINE>// jwtTokenValid(j_jwtToken);<NEW_LINE>authTypeValid(loginCredential.getAuthType());<NEW_LINE>Institutions inst ...
authenticationToken = createOnlineSession(loginCredential, userInfo);
1,835,295
public void populateItem(final Item<SshKey> item) {<NEW_LINE>final SshKey key = item.getModelObject();<NEW_LINE>item.add(new Label("comment", key.getComment()));<NEW_LINE>item.add(new Label("fingerprint"<MASK><NEW_LINE>item.add(new Label("permission", key.getPermission().toString()));<NEW_LINE>item.add(new Label("algor...
, key.getFingerprint()));
875,199
protected <T extends RemoteFile> Map<String, T> addAndFilterFilesInTransaction(Class<T> remoteFileClass, Map<String, T> remoteFiles) throws StorageException {<NEW_LINE>Map<String, T> filteredFiles = new HashMap<String, T>();<NEW_LINE>Set<TransactionTO> transactions = new HashSet<TransactionTO>();<NEW_LINE>Set<RemoteFil...
= new HashSet<RemoteFile>();
1,490,722
JSONObject writeItemsToJson(@NonNull JSONObject json) {<NEW_LINE>JSONArray jsonArray = new JSONArray();<NEW_LINE>if (!items.isEmpty()) {<NEW_LINE>try {<NEW_LINE>for (ITileSource template : items) {<NEW_LINE>JSONObject jsonObject = new JSONObject();<NEW_LINE>boolean sql = template instanceof SQLiteTileSource;<NEW_LINE>j...
"minZoom", template.getMinimumZoomSupported());
1,583,560
private static JSDynamicObject createErrorPrototype(JSRealm realm, JSErrorType errorType) {<NEW_LINE>JSContext ctx = realm.getContext();<NEW_LINE>JSDynamicObject proto = errorType == JSErrorType.Error ? realm.getObjectPrototype() : realm.getErrorPrototype(JSErrorType.Error);<NEW_LINE>JSObject errorPrototype;<NEW_LINE>i...
MESSAGE, Strings.EMPTY_STRING, MESSAGE_ATTRIBUTES);
51,653
private static String printTypeModifiers(int modifiers) {<NEW_LINE>java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();<NEW_LINE>java.io.PrintWriter print = new <MASK><NEW_LINE>// $NON-NLS-1$<NEW_LINE>if ((modifiers & ClassFileConstants.AccPublic) != 0)<NEW_LINE>print.print("public ");<NEW_LINE>// $...
java.io.PrintWriter(out);
1,445,468
protected TypeBinding findMethodBinding(BlockScope scope) {<NEW_LINE>ReferenceContext referenceContext = scope.methodScope().referenceContext;<NEW_LINE>if (referenceContext instanceof LambdaExpression) {<NEW_LINE>this.outerInferenceContext = ((LambdaExpression) referenceContext).inferenceContext;<NEW_LINE>}<NEW_LINE>if...
HashMap<TypeBinding, MethodBinding>();
463,345
public static AsyncServerResponse create(Object o, @Nullable Duration timeout) {<NEW_LINE>Assert.notNull(o, "Argument to async must not be null");<NEW_LINE>if (o instanceof CompletableFuture) {<NEW_LINE>CompletableFuture<ServerResponse> futureResponse = (CompletableFuture<ServerResponse>) o;<NEW_LINE>return new Default...
return new DefaultAsyncServerResponse(futureResponse, timeout);
1,664,849
public void begin() throws ResourceException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "begin", new Object[] { this, ivMC });<NEW_LINE>ResourceException re;<NEW_LINE>synchronized (ivMC) {<NEW_LINE>re = ivStateManager.isValid(StateManager.LT_BEGIN);<NEW_LINE>if (re == null) {<NEW_LINE>try {<NEW_LINE>prev...
"SpiLocalTransaction started. ManagedConnection state is " + ivMC.getTransactionStateAsString());
1,065,261
public View onCreateView(@NonNull LayoutInflater inflater, @NonNull ViewGroup parent) {<NEW_LINE>final View view = inflater.inflate(R.layout.dd_debug_drawer_module_device, parent, false);<NEW_LINE>view.setClickable(false);<NEW_LINE>view.setEnabled(false);<NEW_LINE>final TextView deviceMakeLabel = view.findViewById(R.id...
.getResources().getDisplayMetrics();
85,960
private static String validate(SyntheticMonitorConfig config) throws Exception {<NEW_LINE>if (config.getKind() == SyntheticMonitorKind.JAVA) {<NEW_LINE>// only used by central<NEW_LINE>Class<?> javaSource;<NEW_LINE>try {<NEW_LINE>javaSource = Compilations.compile(config.getJavaSource());<NEW_LINE>} catch (CompilationEx...
(ImmutableList.of("Class must have a public default constructor"));
754,497
public void listIncidentsForAlert() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorAsyncClient.listIncidentsForAlert#String-String<NEW_LINE>final String alertConfigurationId = "ff3014a0-bbbb-41ec-a637-677e77b81299";<NEW_LINE>final String alertId = "1746b031c00";<NEW_LINE>metricsAdvisorAsyncClient.listIn...
System.out.printf("Root DataFeedDimension Key:");
1,399,492
private void refreshViews() {<NEW_LINE>View scrollView = findViewById(R.id.scroll_view);<NEW_LINE>if (scrollView.getVisibility() != View.VISIBLE) {<NEW_LINE>AniUtils.fadeIn(scrollView, AniUtils.Duration.MEDIUM);<NEW_LINE>}<NEW_LINE>mTitleTextView.setText(mPlugin.getDisplayName());<NEW_LINE>mImageManager.load(mImageBann...
(mPlugin.getAuthorAsHtml()));
85,444
public void flush(final long targetCounter) throws IOException, JournalClosedException {<NEW_LINE>// Return if flushed.<NEW_LINE>if (targetCounter <= mFlushCounter.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Submit the ticket for flush thread to process.<NEW_LINE>FlushTicket ticket = new FlushTicket(targetCounter)...
.INTERNAL.withCause(e));
144,240
public void dealOutParam(String result) {<NEW_LINE>if (CollectionUtils.isEmpty(localParams)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Property> outProperty = getOutProperty(localParams);<NEW_LINE>if (CollectionUtils.isEmpty(outProperty)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (StringUtils.isEmpty(result)) {<NEW_L...
sqlResultFormat = new HashMap<>();
1,436,717
public void testOrderColumnBi(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert.fail("OrderColumnTestLogic.testOrderColumnBi(): Missi...
entityType = EntityType.valueOf(entityTypeStr);
1,234,650
private T collectReduceUnordered(Function<Batch<T>, T> map, Function2<T, T, T> function2) {<NEW_LINE>LazyIterable<? extends Batch<T>> chunks = this.split();<NEW_LINE>MutableList<Callable<T>> callables = chunks.collect((Function<Batch<T>, Callable<T>>) chunk -> () -> map.valueOf(chunk)).toList();<NEW_LINE>ExecutorComple...
callables.each(completionService::submit);
1,132,641
private void paintBackgroundStack(RenderingContext c, Rectangle bounds) {<NEW_LINE>Rectangle imageContainer;<NEW_LINE>BorderPropertySet border = getStyle().getBorder(c);<NEW_LINE>TableColumn column = getTable().colElement(getCol());<NEW_LINE>if (column != null) {<NEW_LINE>c.getOutputDevice().paintBackground(c, column.g...
imageContainer = section.getPaintingBorderEdge(c);
1,676,552
private synchronized void init() throws IOException {<NEW_LINE>// Need the extra test, to avoid throwing an IOException from the Transcoder<NEW_LINE>if (imageInput == null) {<NEW_LINE>throw new IllegalStateException("input == null");<NEW_LINE>}<NEW_LINE>if (reader == null) {<NEW_LINE>WMFTranscoder transcoder = new WMFT...
TranscoderOutput out = new TranscoderOutput(writer);
631,053
public String creditCard(CreditCardType creditCardType) {<NEW_LINE>final String key = String.format("finance.credit_card.%s", creditCardType.toString().toLowerCase());<NEW_LINE>String value = faker.fakeValuesService().resolve(key, this, faker);<NEW_LINE>final String template = faker.numerify(value);<NEW_LINE>String[] s...
(Integer.valueOf(current));
348,389
// the price without discounting<NEW_LINE>private double undiscountedPrice(ResolvedFxVanillaOption option, RatesProvider ratesProvider, BlackFxOptionVolatilities volatilities) {<NEW_LINE>double timeToExpiry = volatilities.relativeTime(option.getExpiry());<NEW_LINE>if (timeToExpiry < 0d) {<NEW_LINE>return 0d;<NEW_LINE>}...
ResolvedFxSingle underlying = option.getUnderlying();
1,527,588
static // repeat x = y / y.norm(); y = A * x; end<NEW_LINE>GraphDef CreateGraphDef() throws Exception {<NEW_LINE>// TODO(jeff,opensource): This should really be a more interesting<NEW_LINE>// computation. Maybe turn this into an mnist model instead?<NEW_LINE>Scope root = Scope.NewRootScope();<NEW_LINE>// a = [3 2; -1 ...
), new Input(x));
1,827,215
public Credentials fetch() {<NEW_LINE>String filename = this.filename;<NEW_LINE>if (filename == null) {<NEW_LINE>filename = getProperty("MINIO_SHARED_CREDENTIALS_FILE");<NEW_LINE>}<NEW_LINE>if (filename == null) {<NEW_LINE>String mcDir = ".mc";<NEW_LINE>if (System.getProperty("os.name").toLowerCase(Locale.US).contains(...
accessKey = values.get("accessKey");
1,837,738
private static void create_tuple_nth(int n_cells, ClassVisitor cw, String this_class_name) {<NEW_LINE>MethodVisitor mv;<NEW_LINE>mv = cw.visitMethod(Opcodes.ACC_PUBLIC, "elm", "(I)" + ETERM_TYPE.getDescriptor(), null, null);<NEW_LINE>mv.visitCode();<NEW_LINE>Label dflt = new Label();<NEW_LINE>Label[] labels = new Label...
mv.visitMaxs(3, 2);
870,935
final CreateInterconnectResult executeCreateInterconnect(CreateInterconnectRequest createInterconnectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createInterconnectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
false), new CreateInterconnectResultJsonUnmarshaller());
158,626
public IpRangeInventory createIpRange(IpRangeInventory ipr, APICreateMessage msg) {<NEW_LINE>AddressPoolVO vo = new SQLBatchWithReturn<AddressPoolVO>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected AddressPoolVO scripts() {<NEW_LINE>AddressPoolVO vo = new AddressPoolVO();<NEW_LINE>vo.setUuid(ipr.getUuid() == null ?...
setL3NetworkUuid(ipr.getL3NetworkUuid());
428,535
protected final void handleReceiptScheduleEvent(@NonNull final AbstractReceiptScheduleEvent event) {<NEW_LINE>final Candidate existingSupplyCandidate = retrieveExistingSupplyCandidateOrNull(event);<NEW_LINE>final CandidateBuilder supplyCandidateBuilder = existingSupplyCandidate != null ? existingSupplyCandidate.toBuild...
purchaseDetail)).build());
309,069
public T execute() {<NEW_LINE>Map<String, List<String>> params = new HashMap<String, List<String>>();<NEW_LINE>if (myResources != null) {<NEW_LINE>ResourceListResponseHandler binding = new ResourceListResponseHandler();<NEW_LINE>BaseHttpClientInvocation invocation = TransactionMethodBinding.createTransactionInvocation(...
invoke(params, binding, invocation);
1,412,361
private void restoreGameButon() {<NEW_LINE>mGameButton.setKeyName(this.originalKeyName);<NEW_LINE>mGameButton.setKeySize(this.originalKeySize[0], this.originalKeySize[1]);<NEW_LINE>mGameButton.setKeyPos(this.originalKeyPos[0], this.originalKeyPos[1]);<NEW_LINE>mGameButton.setKeyMaps(this.originalMaps);<NEW_LINE>mGameBu...
mGameButton.setHide(this.originalHide);
753,804
private JavaScriptNode desugarForInOrOfBody(ForNode forNode, JavaScriptNode iterator, JumpTargetCloseable<ContinueTarget> jumpTarget) {<NEW_LINE>assert forNode.isForInOrOf();<NEW_LINE>VarRef iteratorVar = environment.createTempVar();<NEW_LINE>JavaScriptNode iteratorInit = iteratorVar.createWriteNode(iterator);<NEW_LINE...
.createWriteNode(iteratorNext))));