idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,417,471
public static DescribeCdnDomainConfigsResponse unmarshall(DescribeCdnDomainConfigsResponse describeCdnDomainConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCdnDomainConfigsResponse.setRequestId(_ctx.stringValue("DescribeCdnDomainConfigsResponse.RequestId"));<NEW_LINE>List<DomainConfig> domainConfigs = new...
("DescribeCdnDomainConfigsResponse.DomainConfigs[" + i + "].ConfigId"));
1,323,949
public Object appendChild(final Object childObject) {<NEW_LINE>Object appendedChild = null;<NEW_LINE>if (childObject instanceof Node) {<NEW_LINE><MASK><NEW_LINE>// is the node allowed here?<NEW_LINE>if (!isNodeInsertable(childNode)) {<NEW_LINE>throw asJavaScriptException(new DOMException("Node cannot be inserted at the...
final Node childNode = (Node) childObject;
755,991
/* Called from within a catch block to skip forward to a known token,<NEW_LINE>and report the occurred exception as a problem. */<NEW_LINE>TokenRange recoverStatement(int recoveryTokenType, int lBraceType, int rBraceType, ParseException p) {<NEW_LINE>JavaToken begin = null;<NEW_LINE>if (p.currentToken != null) {<NEW_LI...
p), tokenRange, p));
333,157
private void registerForgeCareer(final VillagerRegistry.VillagerCareer career, final CallbackInfo callbackInfo) {<NEW_LINE>if (this.spongeProfession == null) {<NEW_LINE>this.spongeProfession = SpongeForgeVillagerRegistry.fromNative((VillagerRegistry<MASK><NEW_LINE>}<NEW_LINE>final VillagerCareerBridge_Forge mixinCareer...
.VillagerProfession) (Object) this);
1,375,207
public Boolean doInTransaction(final TransactionStatus status) {<NEW_LINE>// delete vlans for this zone<NEW_LINE>final List<VlanVO> vlans = _vlanDao.listByZone(zoneId);<NEW_LINE>for (final VlanVO vlan : vlans) {<NEW_LINE>_vlanDao.remove(vlan.getId());<NEW_LINE>}<NEW_LINE>final boolean <MASK><NEW_LINE>if (success) {<NEW...
success = _zoneDao.remove(zoneId);
1,242,849
public ResponseEntity<JsonAuthResponse> authenticate(@RequestBody @NonNull final JsonAuthRequest request) {<NEW_LINE>try {<NEW_LINE>final LoginContext loginCtx = new LoginContext(Env.newTemporaryCtx());<NEW_LINE>loginCtx.setWebui(true);<NEW_LINE>final Login loginService = new Login(loginCtx);<NEW_LINE>final LoginAuthen...
(request.getPassword()));
1,085,961
public CaseInstanceResponse createCaseInstanceResponse(CaseInstance caseInstance, RestUrlBuilder urlBuilder) {<NEW_LINE>CaseInstanceResponse result = new CaseInstanceResponse();<NEW_LINE>result.setBusinessKey(caseInstance.getBusinessKey());<NEW_LINE>result.setBusinessStatus(caseInstance.getBusinessStatus());<NEW_LINE>r...
setReferenceType(caseInstance.getReferenceType());
1,828,725
public void validate(Mesh mesh) {<NEW_LINE>if (!(mesh instanceof TriangleMesh)) {<NEW_LINE>throw new AssertionError("Mesh is not TriangleMesh: " + mesh.getClass() + ", mesh = " + mesh);<NEW_LINE>}<NEW_LINE>TriangleMesh tMesh = (TriangleMesh) mesh;<NEW_LINE>int numPoints = tMesh.getPoints().size() / tMesh.getPointElemen...
ObservableIntegerArray faces = tMesh.getFaces();
906,863
public String format(final Correlation correlation, final HttpResponse response) throws IOException {<NEW_LINE>final String correlationId = correlation.getId();<NEW_LINE>final <MASK><NEW_LINE>final StringBuilder result = new StringBuilder(body.length() + 2048);<NEW_LINE>result.append(direction(response));<NEW_LINE>resu...
String body = response.getBodyAsString();
1,041,108
private static Pair<String, String> postIndexedLSR(final long offset, final ITranslationEnvironment environment, final List<ReilInstruction> instructions, final String registerNodeValue1, final String registerNodeValue2, final String immediateNodeValue) {<NEW_LINE>final String address = environment.getNextVariableStrin...
+ immediateNodeValue, qw, tmpVar1));
494,055
private void init_card_thumb_resourceURL_style() {<NEW_LINE>// Create a Card<NEW_LINE>Card card <MASK><NEW_LINE>// Create a CardHeader<NEW_LINE>CardHeader header = new CardHeader(getActivity());<NEW_LINE>// Set the header title<NEW_LINE>header.setTitle(getString(R.string.demo_header_basetitle));<NEW_LINE>card.addCardHe...
= new Card(getActivity());
1,725,996
public D3DRTTexture createRTTexture(int width, int height, WrapMode wrapMode, boolean msaa) {<NEW_LINE>if (PrismSettings.verbose && context.isLost()) {<NEW_LINE>System.err.println("RT Texture allocation while the device is lost");<NEW_LINE>}<NEW_LINE>int createw = width;<NEW_LINE>int createh = height;<NEW_LINE>int cx =...
cy, width, height, aaSamples);
1,290,873
protected JFreeChart createGanttChart() throws JRException {<NEW_LINE>JFreeChart jfreeChart = super.createGanttChart();<NEW_LINE>CategoryPlot categoryPlot = (CategoryPlot) jfreeChart.getPlot();<NEW_LINE>categoryPlot.getDomainAxis(<MASK><NEW_LINE>categoryPlot.setDomainGridlinesVisible(true);<NEW_LINE>categoryPlot.setDom...
).setCategoryLabelPositions(CategoryLabelPositions.STANDARD);
1,509,984
protected static Processor handleAssetProcessingException(Logger logger) {<NEW_LINE>return exchange -> {<NEW_LINE>AttributeEvent event = exchange.getIn().getBody(AttributeEvent.class);<NEW_LINE>Exception exception = (Exception) exchange.getProperty(Exchange.EXCEPTION_CAUGHT);<NEW_LINE>StringBuilder error = new StringBu...
getOut().setBody(exception);
41,365
private String createQueryNewCoreFeature(Feature fp) {<NEW_LINE>StringBuilder cypherCreate = new StringBuilder("CREATE (");<NEW_LINE>cypherCreate.append("f:" + FF4jNeo4jLabels.FF4J_FEATURE + " { uid :'");<NEW_LINE>cypherCreate.append(fp.getUid());<NEW_LINE>cypherCreate.append("', enable:");<NEW_LINE>cypherCreate.<MASK>...
append(fp.isEnable());
1,396,845
public void testObservableRxInvoker_postIbmReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>long timeout = messageTimeout;<NEW_LINE>if (isZOS()) {<NEW_LINE>timeout = zTimeout;<NEW_LINE>}<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LI...
= new Holder<Response>();
1,661,206
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setResult(RESULT_CANCELED);<NEW_LINE>Bundle extras = getIntent().getExtras();<NEW_LINE>Bundle args = extras.getBundle(EXTRA_COMBO_ARGS);<NEW_LINE>String svStr = <MASK><NEW_LINE>ComboViews startingView = svStr != n...
extras.getString(EXTRA_INITIAL_VIEW, null);
1,206,472
private soot.Value handleDFLCond(soot.jimple.ConditionExpr cond) {<NEW_LINE>soot.Local result = lg.generateLocal(soot.ByteType.v());<NEW_LINE><MASK><NEW_LINE>if (isDouble(cond.getOp1()) || isDouble(cond.getOp2()) || isFloat(cond.getOp1()) || isFloat(cond.getOp2())) {<NEW_LINE>// use cmpg and cmpl<NEW_LINE>if ((cond ins...
soot.jimple.Expr cmExpr = null;
1,707,791
public Notebook apply(EntityResponse response) {<NEW_LINE>final Notebook convertedNotebook = new Notebook();<NEW_LINE>convertedNotebook.setUrn(response.getUrn().toString());<NEW_LINE>convertedNotebook.setType(EntityType.NOTEBOOK);<NEW_LINE>EnvelopedAspectMap aspectMap = response.getAspects();<NEW_LINE>MappingHelper<Not...
new Status(dataMap))));
424,751
private static void demo_p2p_script_function() throws Exception {<NEW_LINE>StructTag.Builder builder = new StructTag.Builder();<NEW_LINE>builder.address = AccountAddress.valueOf(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0<MASK><NEW_LINE>builder.module = new Identifier("XDX");<NEW_LINE>builder.name = new Identifi...
, 0, 0, 1 });
832,352
void updateScrollPosition(int offsetX, int offsetY) {<NEW_LINE><MASK><NEW_LINE>int verticalVisibleLength = mRecyclerViewHeight;<NEW_LINE>mNeedVerticalScrollbar = verticalContentLength - verticalVisibleLength > 0 && mRecyclerViewHeight >= mScrollbarMinimumRange || mNeedHorizontalScrollbar;<NEW_LINE>int horizontalContent...
int verticalContentLength = mRecyclerView.computeVerticalScrollRange();
434,303
public void updateComment(final RequestContext context) {<NEW_LINE>final String commentId = context.pathVar("commentId");<NEW_LINE>final <MASK><NEW_LINE>final AbstractFreeMarkerRenderer renderer = new SkinRenderer(context, "admin/comment.ftl");<NEW_LINE>final Map<String, Object> dataModel = renderer.getDataModel();<NEW...
Request request = context.getRequest();
470,775
void processExtends(HashMapWrappedVirtualObject minBounds, HashMapWrappedVirtualObject maxBounds, double[] transformationMatrix, DoubleBuffer vertices, int index, GenerateGeometryResult generateGeometryResult) throws BimserverDatabaseException {<NEW_LINE>double x = vertices.get(index);<NEW_LINE>double y = vertices.get(...
maxBounds.eGet("z")));
1,167,977
// metas-2009_0021_AP1_CR080<NEW_LINE>private Collection<MReportLine> includeLine(MReportLine line) {<NEW_LINE>final int included_reportLineSet_ID = line.getIncluded_ReportLineSet_ID();<NEW_LINE>// Insert Included Lines<NEW_LINE>StringBuilder sql = new StringBuilder("INSERT INTO T_Report " + "(AD_PInstance_ID, PA_Repor...
getCtx(), included_reportLineSet_ID, null);
1,028,508
private JavaVersion findJavaVersion(TruffleObject libJava) {<NEW_LINE>// void JDK_GetVersionInfo0(jdk_version_info* info, size_t info_size);<NEW_LINE>TruffleObject jdkGetVersionInfo = getNativeAccess().lookupAndBindSymbol(libJava, "JDK_GetVersionInfo0", NativeSignature.create(NativeType.VOID, NativeType.POINTER, Native...
).jdkVersionInfo.structSize());
1,081,329
// index@3<NEW_LINE>public void loadAllKeys() {<NEW_LINE>if (cache != null)<NEW_LINE>return;<NEW_LINE>byte[][] buf = new byte[1000][];<NEW_LINE>int bufSize = (int) ((MAX_DIRECT_POS_SIZE / 1000) * POSITION_SIZE);<NEW_LINE>InputStream is = indexFile.getInputStream();<NEW_LINE>ObjectReader reader = new ObjectReader(is, BU...
Runtime rt = Runtime.getRuntime();
957,776
public PointSensitivityBuilder presentValueSensitivityModelParamsVolatility(ResolvedFxVanillaOption option, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities) {<NEW_LINE>validate(ratesProvider, volatilities);<NEW_LINE>double timeToExpiry = volatilities.relativeTime(option.getExpiry());<NEW_LINE>i...
forwardRate = forward.fxRate(currencyPair);
1,836,737
public void check() throws SQLException {<NEW_LINE>super.check();<NEW_LINE>originalPredicate = generatePredicate();<NEW_LINE>select.setWhereClause(originalPredicate);<NEW_LINE>String originalQueryString = CockroachDBVisitor.asString(select);<NEW_LINE>List<String> resultSet = ComparatorHelper.getResultSetFirstColumnAsSt...
secondQueryString = CockroachDBVisitor.asString(select);
30,124
public static void syncVolumeToRootFolder(DatacenterMO dcMo, DatastoreMO ds, String vmdkName, String vmName, String excludeFolders) throws Exception {<NEW_LINE>String fileDsFullPath = ds.searchFileInSubFolders(vmdkName + ".vmdk", false, excludeFolders);<NEW_LINE>if (fileDsFullPath == null)<NEW_LINE>return;<NEW_LINE>Str...
DatastoreFile srcDsFile = new DatastoreFile(fileDsFullPath);
1,384,246
public com.amazonaws.services.elasticfilesystem.model.DependencyTimeoutException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.elasticfilesystem.model.DependencyTimeoutException dependencyTimeoutException = new com.amazonaws.services.elasticfilesystem.model.De...
class).unmarshall(context));
853,503
protected void fillImporterInfo(Import theImport, String sourceSystemId) {<NEW_LINE>if (!xmlImporterMap.containsKey(theImport.getImportType())) {<NEW_LINE>if (theImport.getImportType().equals("http://schemas.xmlsoap.org/wsdl/")) {<NEW_LINE>Class<?> wsdlImporterClass;<NEW_LINE>try {<NEW_LINE>wsdlImporterClass = Class.fo...
importerInstance.importFrom(theImport, sourceSystemId);
1,569,929
public boolean showLookup() {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>checkValid();<NEW_LINE>LOG.assertTrue(!myShown);<NEW_LINE>myShown = true;<NEW_LINE>myStampShown = System.currentTimeMillis();<NEW_LINE>fireLookupShown();<NEW_LINE>if (ApplicationManager.getApplication().isHeadl...
ChooseItemAction.Replacing(), actionEvent);
852,843
private void renderTitleBarButton(MatrixStack matrixStack, int x1, int y1, int x2, int y2, boolean hovering) {<NEW_LINE>int x3 = x2 + 2;<NEW_LINE>Matrix4f matrix = matrixStack.peek().getPositionMatrix();<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.getInstance().getBuffer();<NEW_LINE>RenderSystem.setShader(GameRe...
y1, 0).next();
1,095,067
static void vp8_dequant_idct_add_core(final int imax, final int jmax, PositionableIntArrPointer eobs, FullAccessIntArrPointer q, ReadOnlyIntArrPointer dq, FullAccessIntArrPointer dst, int stride) {<NEW_LINE>final int dstinc = (stride - jmax) << 2;<NEW_LINE>for (int i = 0; i < imax; ++i) {<NEW_LINE>for (int j = 0; j < j...
, (short) 0, 2);
1,619,389
private void processStatus() {<NEW_LINE>int count = 0;<NEW_LINE>// Requests with status with after timeout<NEW_LINE>String sql = "SELECT * FROM R_Request r WHERE EXISTS (" + "SELECT * FROM R_Status s " + "WHERE r.R_Status_ID=s.R_Status_ID" + " AND s.TimeoutDays > 0 AND s.Next_Status_ID > 0" + " AND r.DateLastAction+s.T...
), status.getNext_Status_ID());
584,245
public // JMSTimeStamp<NEW_LINE>void testJMSTimestamp_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>String msgText = "Hello this is a test case for TextMessage ";<NEW_LINE>JMSContext jmsContext = jmsQCFBindings.createContext();<NEW_LI...
msg1 = jmsContext.createTextMessage(msgText);
1,093,725
public void tick() {<NEW_LINE>if (gatesChanged) {<NEW_LINE>wireSystems.keySet().stream().filter(wireSystem -> {<NEW_LINE>boolean newPowered = wireSystem.update(this);<NEW_LINE>return wireSystems.<MASK><NEW_LINE>}).forEach(changedSystems::add);<NEW_LINE>}<NEW_LINE>world.getPlayers(EntityPlayerMP.class, Predicates.always...
put(wireSystem, newPowered) != newPowered;
818,052
public static DescribeAvailableResourceInfoResponse unmarshall(DescribeAvailableResourceInfoResponse describeAvailableResourceInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAvailableResourceInfoResponse.setRequestId(_ctx.stringValue("DescribeAvailableResourceInfoResponse.RequestId"));<NEW_LINE>List<Image> i...
("DescribeAvailableResourceInfoResponse.SupportResources[" + i + "].SystemDiskMaxSize"));
1,533,775
public synchronized void stop() throws IOException, InterruptedException {<NEW_LINE>if (executor == null) {<NEW_LINE>// keep repeated calls to stop() from failing<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MiniAccumuloClusterControl control = getClusterControl();<NEW_LINE>control.<MASK><NEW_LINE>control.stop(ServerType.MANAG...
stop(ServerType.GARBAGE_COLLECTOR, null);
1,305,326
protected void initForm() {<NEW_LINE>this.setHeight("100%");<NEW_LINE>Borderlayout layout = new Borderlayout();<NEW_LINE>layout.setStyle("width: 100%; height: 100%; position: absolute;");<NEW_LINE>appendChild(layout);<NEW_LINE>String sql = // all<NEW_LINE>MRole.getDefault().// all<NEW_LINE>addAccessSQL(// all<NEW_LINE>...
DB.getKeyNamePairs(sql, true);
647,863
final DeleteFirewallManagerRuleGroupsResult executeDeleteFirewallManagerRuleGroups(DeleteFirewallManagerRuleGroupsRequest deleteFirewallManagerRuleGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFirewallManagerRuleGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,744,494
public JobInvocation.Builder decode(@NonNull Bundle providedBundle) {<NEW_LINE>if (providedBundle == null) {<NEW_LINE>throw new IllegalArgumentException("Unexpected null Bundle provided");<NEW_LINE>}<NEW_LINE>// Copy to prevent modification<NEW_LINE>Bundle data = new Bundle(providedBundle);<NEW_LINE>boolean recur = dat...
getInt(prefix + BundleProtocol.PACKED_PARAM_LIFETIME);
246,587
public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(<MASK><NEW_LINE>final IOperandTreeNode targetRegister = instruction.getOperands().get(0)....
environment, instruction, instructions, "srw");
178,033
private <T extends Trait> void addOperationSecurity(Context<T> context, OperationObject.Builder builder, OperationShape shape, OpenApiMapper plugin) {<NEW_LINE><MASK><NEW_LINE>ServiceIndex serviceIndex = ServiceIndex.of(context.getModel());<NEW_LINE>Map<ShapeId, Trait> serviceSchemes = serviceIndex.getEffectiveAuthSche...
ServiceShape service = context.getService();
1,555,702
public void run() {<NEW_LINE>resultStatus = ExecutionStatus.RUNNING;<NEW_LINE>currentResultStatus = ExecutionStatus.RUNNING;<NEW_LINE>try {<NEW_LINE>// 1. init amClient<NEW_LINE>initAMClient();<NEW_LINE>checkEnd();<NEW_LINE>LOG.info("init amClient.");<NEW_LINE>// 2. get version from master<NEW_LINE>getCurrentJobVersion...
LOG.error("Got exception during python running", e);
398,832
public Segment createNonTerminalSegment(NonTerminalNode node) {<NEW_LINE>NodeFactoryMethodReference method = getNonTerminalNodeProcessMethod(node);<NEW_LINE>NodeFactorySegment root = method.toSegment();<NEW_LINE>// Get all the possible child names for the current node type<NEW_LINE>List<String> parameterName = childNam...
(childNodeEntry, method, i));
243,391
public void doAction() {<NEW_LINE>// get entity list<NEW_LINE>HashSet<Entity> entities = (HashSet<Entity>) sandbox.getSelector().getSelectedItems();<NEW_LINE>UILayerBoxMediator layerBoxMediator = facade.retrieveMediator(UILayerBoxMediator.NAME);<NEW_LINE>if (layersBackup == null) {<NEW_LINE>// backup layer data<NEW_LIN...
EntityUtils.changeParent(entities, entity);
1,229,483
public void contextInitialized(ServletContextEvent sce) {<NEW_LINE>WebServiceContractImpl wscImpl = WebServiceContractImpl.getInstance();<NEW_LINE>ComponentEnvManager compEnvManager = wscImpl.getComponentEnvManager();<NEW_LINE><MASK><NEW_LINE>WebBundleDescriptor webBundle = null;<NEW_LINE>if (jndiNameEnv != null && jnd...
JndiNameEnvironment jndiNameEnv = compEnvManager.getCurrentJndiNameEnvironment();
1,387,671
public Type struct(Types.StructType struct, List<Type> fieldResults) {<NEW_LINE>List<Types.NestedField<MASK><NEW_LINE>List<Types.NestedField> selectedFields = Lists.newArrayListWithExpectedSize(fields.size());<NEW_LINE>boolean sameTypes = true;<NEW_LINE>for (int i = 0; i < fieldResults.size(); i += 1) {<NEW_LINE>Types....
> fields = struct.fields();
1,771,048
public static AnnotatedType completeGenerics(AnnotatedType type, AnnotatedType replacement) {<NEW_LINE>if (type.getType() instanceof Class) {<NEW_LINE>Class clazz = (Class) type.getType();<NEW_LINE>if (clazz.isArray()) {<NEW_LINE>return TypeFactory.arrayOf(completeGenerics(GenericTypeReflector.annotate(clazz.getCompone...
).getAnnotatedGenericComponentType(), replacement);
537,718
private PropertyNode createDefaultClassConstructor(int classLineNumber, long classToken, long lastToken, IdentNode className, boolean subclass) {<NEW_LINE>final int ctorFinish = finish;<NEW_LINE>final List<Statement> statements;<NEW_LINE>final List<IdentNode> parameters;<NEW_LINE>final long identToken = Token.recast(cl...
.singletonList(spreadArgs), false);
971,485
public void addMessage(String queue, Message message) {<NEW_LINE>try {<NEW_LINE>long startTime = Instant.now().toEpochMilli();<NEW_LINE>Map<String, Object> doc = new HashMap<>();<NEW_LINE>doc.put("messageId", message.getId());<NEW_LINE>doc.put("payload", message.getPayload());<NEW_LINE>doc.put("queue", queue);<NEW_LINE...
.now().toEpochMilli();
1,714,441
private void adjustViewPreferredSize(boolean onResize) {<NEW_LINE>JComponent <MASK><NEW_LINE>Dimension minimumSize = view.getMinimumSize();<NEW_LINE>Dimension preferredSize = null;<NEW_LINE>switch(scrollBarPolicy) {<NEW_LINE>case VERTICAL:<NEW_LINE>preferredSize = new Dimension(impl.getViewport().getWidth(), minimumSiz...
view = DesktopComponentsHelper.getComposition(content);
1,524,990
public void compute(double[][] seasonMatrix, int sP, int sQ, int season) {<NEW_LINE>// step 1: find CSS result<NEW_LINE>SCSSEstimate scssEstimate = new SCSSEstimate();<NEW_LINE>scssEstimate.compute(seasonMatrix, sP, sQ, season);<NEW_LINE>ArrayList<double[]> initCoef = new ArrayList<>();<NEW_LINE>initCoef.add(scssEstima...
seasonMatrix, cResidual, initCoef, season);
591,405
private String certChainMessage(final X509Certificate[] chain, CertificateException cause) {<NEW_LINE>Throwable e = cause;<NEW_LINE>LOGGER.log(<MASK><NEW_LINE>final StringBuffer si = new StringBuffer();<NEW_LINE>if (e.getCause() != null) {<NEW_LINE>e = e.getCause();<NEW_LINE>// HACK: there is no sane way to check if th...
Level.FINE, "certChainMessage for " + e);
505,492
private void reloadBean(List<Command> mergedCommands, Map<String, String> oldFullSignatures, Map<String, String> oldSignatures) {<NEW_LINE>if (isDeleteEvent(mergedCommands)) {<NEW_LINE>LOGGER.trace("Skip WELD refresh bean class for delete event on class '{}'", className);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (classN...
throw new IllegalStateException("Plugin error, illegal access", e);
258,527
static Options parse(String[] args) throws ReflectiveOperationException {<NEW_LINE>Options options = new Options();<NEW_LINE>int index = 0;<NEW_LINE>while (index < args.length) {<NEW_LINE>if (!args[index].startsWith("-")) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>if (args[index] == "--") {<NEW_LINE>break;<NEW_LINE>}<NEW_LI...
String clazzName = args[++index];
1,039,597
public void print_info(ObjectInfoPanel p_window, java.util.Locale p_locale) {<NEW_LINE>java.util.ResourceBundle resources = java.util.ResourceBundle.getBundle("app.freerouting.board.ObjectInfoPanel", p_locale);<NEW_LINE>p_window.append_bold(resources.getString("pin") + ": ");<NEW_LINE>p_window.append(resources<MASK><NE...
.getString("component_2") + " ");
1,507,656
final DeleteTokenResult executeDeleteToken(DeleteTokenRequest deleteTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
1,201,695
public void createBindings() {<NEW_LINE>LengthConverter lengthConverter = new LengthConverter();<NEW_LINE>// IntegerConverter intConverter = new IntegerConverter();<NEW_LINE>DoubleConverter doubleConverter = new DoubleConverter(Configuration.get().getLengthDisplayFormat());<NEW_LINE>addWrappedBinding(feeder, "feederGro...
"lengthY", textFieldFiducial2Y, "text", lengthConverter);
620,441
public static Class<?> loadClass(String className) {<NEW_LINE>Class<?> clazz = null;<NEW_LINE>ClassLoader classLoader = getCustomClassLoader();<NEW_LINE>// First exception in chain of classloaders will be used as cause when<NEW_LINE>// no class is found in any of them<NEW_LINE>Throwable throwable = null;<NEW_LINE>if (c...
LOGGER.trace("Trying to load class with local classloader: {}", className);
1,507,225
final DescribeRecoveryPointResult executeDescribeRecoveryPoint(DescribeRecoveryPointRequest describeRecoveryPointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRecoveryPointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
false), new DescribeRecoveryPointResultJsonUnmarshaller());
1,562,543
final DescribeManagedRuleGroupResult executeDescribeManagedRuleGroup(DescribeManagedRuleGroupRequest describeManagedRuleGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeManagedRuleGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,021,719
public String analyzeDoc(byte[] bytes) {<NEW_LINE>List myList = new ArrayList<String>();<NEW_LINE>try {<NEW_LINE>Region region = Region.US_EAST_2;<NEW_LINE>TextractClient textractClient = TextractClient.builder().region(region).build();<NEW_LINE>SdkBytes sourceBytes = SdkBytes.fromByteArray(bytes);<NEW_LINE>// Get the ...
println(e.getMessage());
342,544
public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity pkt) {<NEW_LINE>if (!worldObj.isRemote)<NEW_LINE>return;<NEW_LINE>if (pkt.getNbtCompound() == null)<NEW_LINE>throw new RuntimeException("No NBTTag compound! This is a bug!");<NEW_LINE>NBTTagCompound nbt = pkt.getNbtCompound();<NEW_LINE>try {<NEW_LINE>...
p.applyData(worldObj, null);
1,454,204
private MBeanServerConnection connect() {<NEW_LINE>MBeanServerConnection mbsc = null;<NEW_LINE>try {<NEW_LINE>String jmxURL = String.format(JMX_URL_FORMAT, host, port);<NEW_LINE>JMXServiceURL serviceURL = new JMXServiceURL(jmxURL);<NEW_LINE>Map<String, Object> environment = Collections.singletonMap(JMXConnector.CREDENT...
[] { user, password });
1,056,522
public static DescribeNetworksResponse unmarshall(DescribeNetworksResponse describeNetworksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeNetworksResponse.setRequestId(_ctx.stringValue("DescribeNetworksResponse.RequestId"));<NEW_LINE>describeNetworksResponse.setTotalCount(_ctx.integerValue("DescribeNetworksResp...
+ "].VSwitchIds[" + j + "]"));
321,863
public void parseAttributeClauses(IoTDBSqlParser.AttributeClausesContext ctx, CreateAlignedTimeSeriesStatement createAlignedTimeSeriesStatement) {<NEW_LINE>if (ctx.alias() != null) {<NEW_LINE>createAlignedTimeSeriesStatement.addAliasList(parseNodeName(ctx.alias().nodeNameCanInExpr().getText()));<NEW_LINE>} else {<NEW_L...
getInstance().getDefaultEncodingByType(dataType);
864,332
private boolean optionsItemSelected(MenuItem item) {<NEW_LINE><MASK><NEW_LINE>if (itemId == R.id.action_send_file) {<NEW_LINE>containerActivity.getFileOperationsHelper().sendShareFile(getFile(), true);<NEW_LINE>return true;<NEW_LINE>} else if (itemId == R.id.action_open_file_with) {<NEW_LINE>containerActivity.getFileOp...
int itemId = item.getItemId();
1,844,524
public void reduce(Iterable<Tuple2<Object, Integer>> values, Collector<Tuple2<Object, Integer>> out) throws Exception {<NEW_LINE>LOG.info("{} reduce start.", getRuntimeContext().getTaskName());<NEW_LINE>ArrayList<Tuple2<Object, Integer>> all = new ArrayList<>();<NEW_LINE>int instanceCount = -1;<NEW_LINE>for (Tuple2<Obj...
(all.get(index));
27,832
public Void visitLikePredicate(LikePredicate node, Scope scope) {<NEW_LINE>predicateBaseAndCheck(node);<NEW_LINE>Type type1 = node.getChild(0).getType();<NEW_LINE>Type type2 = node.getChild(1).getType();<NEW_LINE>if (!type1.isStringType() && !type1.isNull()) {<NEW_LINE>throw new SemanticException("left operand of " + n...
1)).getValue());
392,440
public List<ValidationResult> validate(OAuth2SchemeBuilder builder) {<NEW_LINE>List<ValidationResult> results = new ArrayList<>();<NEW_LINE>if (builder.name == null) {<NEW_LINE>results.add(new ValidationResult("OAuth2Scheme", "name", "Parameter name is required"));<NEW_LINE>}<NEW_LINE>if (builder.flowType == null) {<NE...
results, "tokenUrl", builder.tokenUrl);
706,315
public CreateInfrastructureConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateInfrastructureConfigurationResult createInfrastructureConfigurationResult = new CreateInfrastructureConfigurationResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurren...
int originalDepth = context.getCurrentDepth();
159,656
public double modifiedDurationFromStandardYield(ResolvedCapitalIndexedBond bond, RatesProvider ratesProvider, LocalDate settlementDate, double yield) {<NEW_LINE>int nbCoupon = bond.getPeriodicPayments().size();<NEW_LINE>double couponPerYear = bond.getFrequency().eventsPerYear();<NEW_LINE>double factorOnPeriod = 1d + yi...
(factorOnPeriod, -factorToNext) / dp;
738,607
public boolean isLearnable(Object object) {<NEW_LINE>if (WrappedStack.canBeWrapped(object)) {<NEW_LINE>WrappedStack wrappedObject = <MASK><NEW_LINE>if (object instanceof ItemStack && ((ItemStack) object).isItemDamaged()) {<NEW_LINE>return false;<NEW_LINE>} else {<NEW_LINE>if (EnergyValueRegistryProxy.hasEnergyValue(wra...
WrappedStack.build(object, 1);
927,042
protected void onPostExecute(GpxDisplayItem gpxItem) {<NEW_LINE>if (progressDialog != null) {<NEW_LINE>progressDialog.dismiss();<NEW_LINE>}<NEW_LINE>if (gpxItem != null && gpxItem.analysis != null) {<NEW_LINE>ArrayList<GPXDataSetType> list = new ArrayList<>();<NEW_LINE>if (gpxItem.analysis.hasElevationData) {<NEW_LINE>...
list.add(GPXDataSetType.SLOPE);
707,377
public ProgramDiagnosticDataType decode(SerializationContext context, UaDecoder decoder) {<NEW_LINE>NodeId createSessionId = decoder.readNodeId("CreateSessionId");<NEW_LINE>String createClientName = decoder.readString("CreateClientName");<NEW_LINE>DateTime invocationCreationTime = decoder.readDateTime("InvocationCreati...
readStruct("LastMethodReturnStatus", StatusResult.TYPE_ID);
320,970
private void prepare(final ResultSetMetaData metaData) throws SQLException {<NEW_LINE>Map<String, Object> m = new HashMap<String, Object>() {<NEW_LINE><NEW_LINE>{<NEW_LINE>put("$meta.row.columnCount", metaData.getColumnCount());<NEW_LINE>}<NEW_LINE>};<NEW_LINE>for (int i = 0; i < metaData.getColumnCount(); i++) {<NEW_L...
, metaData.getColumnClassName(i));
794,482
public Request<DeleteProjectRequest> marshall(DeleteProjectRequest deleteProjectRequest) {<NEW_LINE>if (deleteProjectRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteProjectRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteProjectRequest> request = new DefaultRequest<De...
request.addHeader("X-Amz-Target", target);
1,258,181
public void changeFeedProcessorBuilderCodeSnippet() {<NEW_LINE>String hostName = "test-host-name";<NEW_LINE>CosmosAsyncClient cosmosAsyncClient = new CosmosClientBuilder().endpoint(TestConfigurations.HOST).key(TestConfigurations.MASTER_KEY).contentResponseOnWriteEnabled(true).consistencyLevel(ConsistencyLevel.SESSION)....
feedContainer = cosmosAsyncDatabase.getContainer("feedContainer");
703,629
public void createSite2SiteVpnCfgCommands(final Site2SiteVpnConnection conn, final boolean isCreate, final VirtualRouter router, final Commands cmds) {<NEW_LINE>final Site2SiteCustomerGatewayVO gw = _s2sCustomerGatewayDao.findById(conn.getCustomerGatewayId());<NEW_LINE>final Site2SiteVpnGatewayVO vpnGw = _s2sVpnGateway...
.getAddress().toString();
1,745,300
public MatrixResponse route(GHMRequest ghRequest) {<NEW_LINE>Collection<String> outArraysList = createOutArrayList(ghRequest);<NEW_LINE>JsonNode <MASK><NEW_LINE>boolean withTimes = outArraysList.contains("times");<NEW_LINE>boolean withDistances = outArraysList.contains("distances");<NEW_LINE>boolean withWeights = outAr...
requestJson = createPostRequest(ghRequest, outArraysList);
1,729,200
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select symbol, theString, price from " + "SupportMarketDataBean#length(10) as one, " + "SupportBeanString#length(100) as two " + "where one.symbol = two.theString " + "order by price";...
sendEvent(env, "CAT", 50);
653,477
public void run() throws CLIException {<NEW_LINE>try {<NEW_LINE>final double version = Double.parseDouble(System.getProperty("java.specification.version"));<NEW_LINE>if (version >= 11) {<NEW_LINE>int iVersion = (int) version;<NEW_LINE>// Collect the jmods used in the application<NEW_LINE>String mods = exec(javaHomePref...
javaHomePrefix() + "java", "--list-modules");
272,451
private void buildReadFromParcelFactoryMethod(JDefinedClass parcelableClass, JBlock parcelConstructorBody, JVar wrapped, ConstructorReference propertyAccessor, ASTType wrappedType, JVar parcelParam, JVar identity, JVar writeIdentityMap) {<NEW_LINE>ASTMethod factoryMethod = propertyAccessor.getFactoryMethod();<NEW_LINE>...
, writeIdentityMap).getExpression());
50,498
public void analyze() {<NEW_LINE>String[] line;<NEW_LINE>// Collect initial stats: sums (for means), highs, lows.<NEW_LINE>this.source.rewind();<NEW_LINE>int c = 0;<NEW_LINE>while ((line = this.source.readLine()) != null) {<NEW_LINE>c++;<NEW_LINE>for (int i = 0; i < this.helper.getSourceColumns().size(); i++) {<NEW_LIN...
/ colDef.getCount()));
724,249
private void convertArrowFunctionParameterList(Expression paramList, ParserContextFunctionNode function) {<NEW_LINE>Expression paramListExpr = paramList;<NEW_LINE>if (paramListExpr instanceof ExpressionList) {<NEW_LINE>// see parenthesizedExpressionAndArrowParameterList() and leftHandSideExpression()<NEW_LINE>paramList...
), paramListExpr.getToken());
698,221
public void caseIfStmt(IfStmt stmt) {<NEW_LINE>final ConditionExpr expr = (ConditionExpr) stmt.getCondition();<NEW_LINE>final Value lv = expr.getOp1();<NEW_LINE>final Value rv = expr.getOp2();<NEW_LINE>TypeNode lop;<NEW_LINE>TypeNode rop;<NEW_LINE>// ******** LEFT ********<NEW_LINE>if (lv instanceof Local) {<NEW_LINE>l...
typeNode(DoubleType.v());
1,627,638
private void populateBsqSwapTradeColumns(TradeInfo trade) {<NEW_LINE>colTradeId.addRow(trade.getShortId());<NEW_LINE>colRole.addRow(trade.getRole());<NEW_LINE>colPrice.addRow(trade.getTradePrice());<NEW_LINE>colAmount.addRow(toTradeAmount.apply(trade));<NEW_LINE>colMinerTxFee.addRow(toMyMinerTxFee.apply(trade));<NEW_LI...
getBsqSwapTradeInfo().getNumConfirmations());
649,077
protected void generateEvidence(IndentWriter writer) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>writer.indent();<NEW_LINE>writer.println("id:" + getPluginID() + ",version:" + getPluginVersion());<NEW_LINE>String user_dir = FileUtil.getUserFile("plugins").toString();<NEW_LINE>String shared_dir = FileUtil.getApplicationFi...
writer.println(getPluginName());
1,237,765
public boolean goToExternalLocation(Navigatable nav, ExternalLocation externalLocation, boolean checkNavigationOption) {<NEW_LINE>if (checkNavigationOption && !navOptions.isGotoExternalProgramEnabled()) {<NEW_LINE>return goToExternalLinkage(nav, externalLocation, true);<NEW_LINE>}<NEW_LINE>Program externalProgram = ope...
symbol.getProgramLocation(), externalProgram);
616,807
public void onMessage(OrderCancelRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {<NEW_LINE>String symbol = <MASK><NEW_LINE>char side = message.getChar(Side.FIELD);<NEW_LINE>String id = message.getString(OrigClOrdID.FIELD);<NEW_LINE>Order order = orderMatcher.find(s...
message.getString(Symbol.FIELD);
1,303,614
public void execute(RenderHandler handler) throws IOException, Exception {<NEW_LINE>SysSite site = getSite(handler);<NEW_LINE>Date endPublishDate = handler.getDate("endPublishDate");<NEW_LINE>Date expiryDate = null;<NEW_LINE>String path = handler.getString("path");<NEW_LINE>Boolean disabled = false;<NEW_LINE>Integer[] ...
Date now = CommonUtils.getMinuteDate();
338,680
protected WeightedDiscreteUncertainObject filterSingleObject(NumberVector vec) {<NEW_LINE>final int dim = vec.getDimensionality();<NEW_LINE>if (dim % mod != 0) {<NEW_LINE>throw new AbortException("Vector length " + dim + " not divisible by the number of dimensions + 1 (for probability): " + mod);<NEW_LINE>}<NEW_LINE>fi...
] = vec.doubleValue(i);
1,741,404
private void updateReceivedHUs(final IHUContext huContext, final Collection<I_M_HU> hus, @Nullable final PPOrderBOMLineId coByProductOrderBOMLineId) {<NEW_LINE>if (hus.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// Modify the HU Attributes based on the attributes already existing from issuing (task 08...
huAttributes = huAttributeStorageFactory.getAttributeStorage(hu);
1,620,051
private <ExceptionT extends Exception> void collect(ArrayCollector<ExceptionT> collectArray, int length) throws ExceptionT {<NEW_LINE>if (length == 0) {<NEW_LINE>// Nothing to collect.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// We only need to process a subset of our arrays (since we may be sliced from the original array ...
array(), bufferOffset, arrayLength);
302,941
protected void jbInit() throws Exception {<NEW_LINE>// this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);<NEW_LINE>mainPanel.setLayout(new java.awt.BorderLayout());<NEW_LINE>setLayout(new java.awt.BorderLayout());<NEW_LINE>southPanel.setLayout(southLayout);<NEW_LINE>southPanel.<MASK><NEW_LINE>southPanel.add(status...
add(confirmPanel, BorderLayout.CENTER);
555,653
public static ListApplicationsResponse unmarshall(ListApplicationsResponse listApplicationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listApplicationsResponse.setRequestId<MASK><NEW_LINE>listApplicationsResponse.setMessage(_ctx.stringValue("ListApplicationsResponse.Message"));<NEW_LINE>listApplicationsResponse.setE...
(_ctx.stringValue("ListApplicationsResponse.RequestId"));
672,356
static AuthInitiateMessage decode(byte[] wire) {<NEW_LINE>AuthInitiateMessage message = new AuthInitiateMessage();<NEW_LINE>int offset = 0;<NEW_LINE>byte[] r = new byte[32];<NEW_LINE>byte[] s = new byte[32];<NEW_LINE>System.arraycopy(wire, offset, r, 0, 32);<NEW_LINE>offset += 32;<NEW_LINE>System.arraycopy(wire, offset...
offset, bytes, 1, 64);
894,698
private void defaultSubstituteText(final JTextComponent c, final int offset, final int len, String toAdd) {<NEW_LINE>final String template = item.getCustomInsertTemplate();<NEW_LINE>if (template != null) {<NEW_LINE>final BaseDocument doc = (BaseDocument) c.getDocument();<NEW_LINE>final CodeTemplateManager ctm = CodeTem...
c, offset, len, toAdd);