idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
445,955
public void channelRead(ChannelHandlerContext ctx, Object msg) {<NEW_LINE>Channel channel = ctx.channel();<NEW_LINE>Attribute<Context> contextAttr = channel.attr(AttributeKeys.SERVER_CONTEXT);<NEW_LINE>Attribute<HttpRequestAndChannel> requestAttr = channel.attr(AttributeKeys.SERVER_REQUEST);<NEW_LINE>if (!(msg instance...
).start(parentContext, request);
726,620
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {<NEW_LINE>if (this.shouldCaptureInstance) {<NEW_LINE>this.binding.modifiers &= ~ClassFileConstants.AccStatic;<NEW_LINE>} else {<NEW_LINE>this.binding.modifiers |= ClassFileConstants.AccStatic;<NEW_LINE>}<NEW_LINE>SourceType...
!(this.binding instanceof SyntheticMethodBinding);
1,473,262
public void paintComponent(Graphics g) {<NEW_LINE>boolean pressed = getModel().isPressed();<NEW_LINE>boolean stateChanged = myWasPressed != pressed;<NEW_LINE>myWasPressed = pressed;<NEW_LINE>if (myBufferedImage == null || stateChanged) {<NEW_LINE>Dimension size = getSize();<NEW_LINE>Insets insets = getInsets();<NEW_LIN...
size.height, BufferedImage.TYPE_INT_RGB);
1,849,777
public int writeVarInt(long value) {<NEW_LINE>assert value != Long.MIN_VALUE;<NEW_LINE>final long signMask <MASK><NEW_LINE>final long magnitude = value < 0 ? -value : value;<NEW_LINE>if (magnitude < VAR_INT_2_OCTET_MIN_VALUE) {<NEW_LINE>writeUInt8((magnitude & VAR_INT_SIGNED_OCTET_MASK) | VAR_INT_FINAL_OCTET_SIGNAL_MAS...
= value < 0 ? VAR_INT_SIGNBIT_ON_MASK : VAR_INT_SIGNBIT_OFF_MASK;
855,559
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2".split(",");<NEW_LINE>String epl = "@name('s0') select " + "value = all (select sum(intPrimitive) from SupportBean#keepall group by theString) as c0, " + "value = any (select sum(intPrimitive) from SupportBean#keepall group by theString) ...
new SupportBean("E1", 10));
289,768
public static <T> void writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric, LinkedBuffer buffer) throws IOException {<NEW_LINE>if (buffer.start != buffer.offset)<NEW_LINE>throw new IllegalArgumentException("Buffer previously used and had not been reset.");<NEW_LINE>if (messages.isEmpty()) ...
buffer, out, numeric, schema);
1,110,033
public Expr apply(Expr expr, Analyzer analyzer, ExprRewriter.ClauseType clauseType) throws AnalysisException {<NEW_LINE>SlotRef queryColumnSlotRef;<NEW_LINE>Column mvColumn;<NEW_LINE>// meet the condition<NEW_LINE>if (!(expr instanceof FunctionCallExpr)) {<NEW_LINE>return expr;<NEW_LINE>}<NEW_LINE>FunctionCallExpr fnEx...
SlotRef) child0FnExpr.getChild(0);
1,206,424
public final T build(String[] args) {<NEW_LINE>T config = newConfiguration();<NEW_LINE>Map<String, Param> paramMap = getParamMap();<NEW_LINE>Set<String> appliedParams = new TreeSet<>(CASE_INSENSITIVE_ORDER);<NEW_LINE>for (String arg : args) {<NEW_LINE>if (!arg.startsWith("--")) {<NEW_LINE>throw new IllegalArgumentExcep...
param = paramMap.get(key);
1,274,809
private LogRecordWithDLSN doReadNext(boolean nonBlocking) throws IOException {<NEW_LINE>LogRecordWithDLSN record = null;<NEW_LINE>do {<NEW_LINE>// fetch one record until we don't find any entry available in the readahead cache<NEW_LINE>while (null == record) {<NEW_LINE>if (null == currentEntry) {<NEW_LINE>currentEntry ...
readerException.compareAndSet(null, eos);
1,600,588
protected String generateSourceView(String source, String extension, boolean prettyPrint) {<NEW_LINE>String[] lines = source.split("\n");<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("<!-- start blob table -->");<NEW_LINE>sb.append("<table width=\"100%\"><tbody><tr>");<NEW_LINE>// nums column<NEW...
+ (i + 1)));
1,324,670
public boolean hasSaveRelevantChanges(final OfflineLogEntry prev) {<NEW_LINE>// Do not erase the saved log if the user has removed all the characters<NEW_LINE>// without using "Clear". This may be a manipulation mistake, and erasing<NEW_LINE>// again will be easy using "Clear" while retyping the text may not be.<NEW_LI...
rating, prev.rating, 0.2f);
1,628,069
private void initComponents() {<NEW_LINE>// Init strategies list<NEW_LINE>this.mainPanel = new TransparentPanel(new BorderLayout());<NEW_LINE>JPanel infoTitlePanel = new TransparentPanel(new FlowLayout(FlowLayout.CENTER));<NEW_LINE>JTextArea firstDescription = new JTextArea(GuiActivator.getResources<MASK><NEW_LINE>JLab...
().getI18NString("impl.gui.main.account.DEFAULT_PAGE_BODY"));
15,549
private static boolean isPregMatchInverted(@NotNull FunctionReference reference) {<NEW_LINE>boolean result = false;<NEW_LINE>final PsiElement parent = reference.getParent();<NEW_LINE>if (ExpressionSemanticUtil.isUsedAsLogicalOperand(reference)) {<NEW_LINE>if (parent instanceof UnaryExpression) {<NEW_LINE>result = Opena...
IElementType operator = binary.getOperationType();
43,821
public static FindCredentialsListResponse unmarshall(FindCredentialsListResponse findCredentialsListResponse, UnmarshallerContext _ctx) {<NEW_LINE>findCredentialsListResponse.setRequestId(_ctx.stringValue("FindCredentialsListResponse.RequestId"));<NEW_LINE>findCredentialsListResponse.setCode(_ctx.integerValue("FindCred...
("FindCredentialsListResponse.Data.CredentialList[" + i + "].OwnerAttr"));
375,487
private int addBootStrapRecordEntry(int localContentsOffset, TypeDeclaration typeDecl, Map<String, Integer> fPtr) {<NEW_LINE>TypeBinding type = typeDecl.binding;<NEW_LINE>// sanity check<NEW_LINE>assert type.isRecord();<NEW_LINE>final int contentsEntries = 10;<NEW_LINE>int indexForObjectMethodBootStrap = fPtr.get(Class...
this.constantPool.literalIndexForType(recordName);
1,005,170
public void scanBarCode(ScanResult callback) {<NEW_LINE>if (getActivity() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (getActivity() instanceof CodenameOneActivity) {<NEW_LINE>((CodenameOneActivity) getActivity<MASK><NEW_LINE>}<NEW_LINE>this.callback = callback;<NEW_LINE>IntentIntegrator in = new IntentIntegrato...
()).setIntentResultListener(this);
56,535
Response toFeignResponse(ClassicHttpResponse httpResponse, Request request) throws IOException {<NEW_LINE>final int statusCode = httpResponse.getCode();<NEW_LINE>final String reason = httpResponse.getReasonPhrase();<NEW_LINE>final Map<String, Collection<String>> headers = new HashMap<String, Collection<String>>();<NEW_...
(httpResponse)).build();
1,515,748
final DescribeDirectConnectGatewayAssociationsResult executeDescribeDirectConnectGatewayAssociations(DescribeDirectConnectGatewayAssociationsRequest describeDirectConnectGatewayAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDirectConnectGatewayAssociationsRequest);<NE...
(super.beforeMarshalling(describeDirectConnectGatewayAssociationsRequest));
486,086
CdmAttributeContext copyAttributeContextTree(final ResolveOptions resOpt, final CdmAttributeContext newNode) {<NEW_LINE>// remember which node in the new tree replaces which node in the old tree<NEW_LINE>// the caller MUST use this to replace the explicit references held in the lineage and parent reference objects<NEW_...
childAsAttributeContext.copyAttributeContextTree(resOpt, newChild);
717,748
public Request<DeleteVocabularyRequest> marshall(DeleteVocabularyRequest deleteVocabularyRequest) {<NEW_LINE>if (deleteVocabularyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteVocabularyRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteVocabularyRequest> request = new...
(deleteVocabularyRequest.getVocabularyId()));
1,492,472
public void execute() throws ZinggClientException {<NEW_LINE>try {<NEW_LINE>// read input, filter, remove self joins<NEW_LINE>Dataset<Row> testData = getTestData();<NEW_LINE>testData = testData.repartition(args.getNumPartitions(), testData.col(ColName.ID_COL));<NEW_LINE>// testData = dropDuplicates(testData);<NEW_LINE>...
distinct().count());
1,706,954
public void execute(final JobExecutionContext jobCtx) throws JobExecutionException {<NEW_LINE>TopicConnection conn = null;<NEW_LINE>TopicSession sess = null;<NEW_LINE>TopicPublisher publisher = null;<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>final Context namingCtx = JmsHelper.getInitialContext(dataMap);<NEW_LINE>f...
JobDataMap dataMap = jobCtx.getMergedJobDataMap();
1,445,876
public void replaceShrinkResourcesTransform() {<NEW_LINE>File shrinkerOutput = FileUtils.join(variantContext.getScope().getGlobalScope().getIntermediatesDir(), "res_stripped", variantContext.getScope().getVariantConfiguration().getDirName());<NEW_LINE>List<TransformTask> baseTransforms = TransformManager.findTransformT...
updateField(transform, "transform", resourcesShrinker);
1,138,831
private static Set<String> buildTagsInformative() {<NEW_LINE>Set<String> set = new HashSet<>();<NEW_LINE>set.add(OboFormatTag.TAG_IS_A.getTag());<NEW_LINE>set.add(OboFormatTag.TAG_RELATIONSHIP.getTag());<NEW_LINE>set.add(OboFormatTag.TAG_DISJOINT_FROM.getTag());<NEW_LINE>set.add(OboFormatTag.TAG_INTERSECTION_OF.getTag(...
OboFormatTag.TAG_EQUIVALENT_TO.getTag());
73,641
public double estimate(KNNSearcher<DBIDRef> knnq, DistanceQuery<? extends Object> distq, DBIDRef cur, int k) {<NEW_LINE>final boolean issquared = distq.getDistance().isSquared();<NEW_LINE>final KNNList kl = knnq.getKNN(cur, k);<NEW_LINE>final double r = kl.getKNNDistance(), r2 = issquared ? r : r * r;<NEW_LINE>double s...
+ FastMath.log(S));
40,521
public void onCreate(Bundle savedInstance) {<NEW_LINE>super.onCreate(savedInstance);<NEW_LINE>applyColorTheme("");<NEW_LINE>setContentView(R.layout.activity_login);<NEW_LINE>setupAppBar(R.id.toolbar, "Re-authenticate", true, true);<NEW_LINE>String[] scopes = { "identity", "modcontributors", "modconfig", "modothers", "m...
true, scopes).toExternalForm();
1,661,560
public static CreateDataModelResponse unmarshall(CreateDataModelResponse createDataModelResponse, UnmarshallerContext _ctx) {<NEW_LINE>createDataModelResponse.setRequestId(_ctx.stringValue("CreateDataModelResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setCreateTime(_ctx.stringValue("CreateDataMod...
(_ctx.stringValue("CreateDataModelResponse.Data.SubType"));
439,098
public static DescribeResourcePackagesResponse unmarshall(DescribeResourcePackagesResponse describeResourcePackagesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeResourcePackagesResponse.setRequestId(_ctx.stringValue("DescribeResourcePackagesResponse.RequestId"));<NEW_LINE>describeResourcePackagesResponse.setSu...
("DescribeResourcePackagesResponse.ResourcePackages[" + i + "].InstanceName"));
1,160,082
private void initialize(Snapshot snapshot) {<NEW_LINE>// TODO: if some property cannot be loaded for current snapshot version, FAIL initializing the snapshot!<NEW_LINE>Storage storage = snapshot.getStorage();<NEW_LINE>String version = getProperty(storage, SNAPSHOT_VERSION);<NEW_LINE>chartCache = Integer.parseInt(getPro...
heapName = getProperty(storage, PROP_HEAP_NAME);
69,473
protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace) {<NEW_LINE>Histogram histogram = new Histogram(inPixels, width, height, 0, width);<NEW_LINE>int i, j;<NEW_LINE>if (histogram.getNumSamples() > 0) {<NEW_LINE>float scale = 255.0f / histogram.getNumSamples();<NEW_LINE>lut = <M...
new int[3][256];
1,372,144
public UpdateParallelDataResult updateParallelData(UpdateParallelDataRequest updateParallelDataRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateParallelDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.g...
new JsonResponseHandler<UpdateParallelDataResult>(unmarshaller);
755,596
private Elements.Builder convertBufferForTransmission() {<NEW_LINE>Elements.Builder bufferedElements = Elements.newBuilder();<NEW_LINE>for (Map.Entry<String, Receiver<?>> entry : outputDataReceivers.entrySet()) {<NEW_LINE>if (entry.getValue().getOutput().size() == 0) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>ByteString ...
.getOutput().toByteString();
1,376,586
public void save(TeaVMDevServerConfiguration configuration) {<NEW_LINE>configuration.setMainClass(mainClassField.getText().trim());<NEW_LINE>moduleSelector.applyTo(configuration);<NEW_LINE>configuration.setJdkPath(jrePathEditor.getJrePathOrName());<NEW_LINE>configuration.setFileName(fileNameField.<MASK><NEW_LINE>config...
getText().trim());
723,128
private void startCleanupThread() {<NEW_LINE>if (cleanupThread != null) {<NEW_LINE>cleanupThread.cancel(true);<NEW_LINE>}<NEW_LINE>logger.debug(String.format("progress cleanup thread starts with interval %ss", ProgressGlobalConfig.CLEANUP_THREAD_INTERVAL.value(Integer.class)));<NEW_LINE>cleanupThread = thdf.submitPerio...
)).longValue() * 1000;
673,166
public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>Log.d(TAG, "Application onCreate", Log.DEBUG_MODE);<NEW_LINE>// handle uncaught java exceptions<NEW_LINE>Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void uncaughtException(Thread t, T...
File(TiC.URL_ANDROID_ASSET_RESOURCES, "app.js");
1,336,512
private void overrideStartForResultMethod() {<NEW_LINE>AbstractJClass postActivityStarterClass = environment.getJClass(PostActivityStarter.class);<NEW_LINE>JMethod method = holder.getIntentBuilderClass().<MASK><NEW_LINE>method.annotate(Override.class);<NEW_LINE>JVar requestCode = method.param(environment.getCodeModel()...
method(PUBLIC, postActivityStarterClass, "startForResult");
70,103
final CancelServiceSoftwareUpdateResult executeCancelServiceSoftwareUpdate(CancelServiceSoftwareUpdateRequest cancelServiceSoftwareUpdateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelServiceSoftwareUpdateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
137,807
private boolean addTangents(Grid grid, int rowA, int colA, int rowB, int colB) {<NEW_LINE>EllipseRotated_F64 a = grid.get(rowA, colA);<NEW_LINE>EllipseRotated_F64 b = grid.get(rowB, colB);<NEW_LINE>if (!tangentFinder.process(a, b, A0, A1, A2, A3, B0, B1, B2, B3)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Tangents ta...
countT++].setTo(B0);
1,314,826
final UpdateBatchPredictionResult executeUpdateBatchPrediction(UpdateBatchPredictionRequest updateBatchPredictionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateBatchPredictionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
false), new UpdateBatchPredictionResultJsonUnmarshaller());
75,286
final ListManagedSchemaArnsResult executeListManagedSchemaArns(ListManagedSchemaArnsRequest listManagedSchemaArnsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listManagedSchemaArnsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,146,983
public static ListSkillGroupResponse unmarshall(ListSkillGroupResponse listSkillGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSkillGroupResponse.setRequestId(_ctx.stringValue("ListSkillGroupResponse.RequestId"));<NEW_LINE>listSkillGroupResponse.setMessage(_ctx.stringValue("ListSkillGroupResponse.Message"));<N...
("ListSkillGroupResponse.Data[" + i + "].ChannelType"));
1,086,118
private void dumpHeapReferences(J9JavaVMPointer vm, J9ObjectPointer targetObject, PrintStream out) throws CorruptDataException {<NEW_LINE>if (GCExtensions.isVLHGC()) {<NEW_LINE>Table table = new Table("On Heap References");<NEW_LINE>table.row("object (!j9object)", "field (!j9object)", "!mm_heapregiondescriptorvlhgc", "...
region.objectIterator(true, false);
845,133
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
357,039
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader classLoader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>InstrumentClass target = instrumentor.getInstrumentClass(classLoader, className, classfileBuffe...
.va(CoroutinesConstants.SERVICE_TYPE));
472,609
private void replaceRVContainer(boolean showTabs) {<NEW_LINE>for (AdapterHolder adapterHolder : mAH) {<NEW_LINE>AllAppsRecyclerView rv = adapterHolder.recyclerView;<NEW_LINE>if (rv != null) {<NEW_LINE>rv.setLayoutManager(null);<NEW_LINE>rv.setAdapter(null);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>View oldView = getRecyclerViewC...
getPageIndicator().setOnActivePageChangedListener(this);
795,140
public void fetchFile(OrderType orderType, int segmentNumber, boolean lastSegment, byte[] transactionId, Joiner joiner) throws IOException, AxelorException {<NEW_LINE>DTransferRequestElement downloader;<NEW_LINE>HttpRequestSender sender;<NEW_LINE>DTransferResponseElement response;<NEW_LINE>int httpCode;<NEW_LINE>sender...
orderType, segmentNumber, lastSegment, transactionId);
1,764,025
// Implementation of ActionListener ------------------------------------<NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>// only chooseMainClassButton can be performed<NEW_LINE>// final MainClassChooser panel = new MainClassChooser (sourceRoots.getRoots(), null, mainClassTextField.getT...
DialogDescriptor.BOTTOM_ALIGN, null, null);
1,807,392
private INDArray decodeGivenLatentSpaceValues(INDArray latentSpaceValues, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>if (latentSpaceValues.size(1) != getParamWithNoise(VariationalAutoencoderParamInitializer.PZX_MEAN_W, false, workspaceMgr).size(1)) {<NEW_LINE>throw new IllegalArgumentException("Invalid latent space val...
VariationalAutoencoderParamInitializer.PXZ_B, false, workspaceMgr);
1,518,492
private void createDataBase() throws ClassNotFoundException, IOException, SQLException {<NEW_LINE>String goalUrl = properties.getProperty("spring.datasource.url");<NEW_LINE>this.user = properties.getProperty("spring.datasource.username");<NEW_LINE>this.password = properties.getProperty("spring.datasource.password");<NE...
driverName = properties.getProperty("spring.datasource.driver-class-name");
1,494,207
private HttpResponse generateEmptyResponse() {<NEW_LINE>HttpResponse response <MASK><NEW_LINE>// response.setContent(ChannelBuffers.wrappedBuffer(responseBody));<NEW_LINE>response.setHeader(CONTENT_TYPE, "text/plain; charset=UTF-8");<NEW_LINE>response.setHeader("Access-Control-Allow-Origin", "*");<NEW_LINE>setTrackingI...
= new DefaultHttpResponse(HTTP_1_1, OK);
1,411,940
protected static void removeDefinedCustomXmlParts(WordprocessingMLPackage wmlPackage, String itemId) {<NEW_LINE>List<PartName> partsToRemove = new ArrayList<PartName>();<NEW_LINE>RelationshipsPart relationshipsPart = wmlPackage.getMainDocumentPart().getRelationshipsPart();<NEW_LINE>List<Relationship> relationshipsList ...
).getRelationship() : null);
449,153
final CreateComponentVersionResult executeCreateComponentVersion(CreateComponentVersionRequest createComponentVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createComponentVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,249,060
private void addReference(MInOut inout, String createFromType, int referenceId) {<NEW_LINE>// Valid Reference<NEW_LINE>if (referenceId == 0)<NEW_LINE>return;<NEW_LINE>if (createFromType.equals(ORDER)) {<NEW_LINE>MOrder order = new MOrder(getCtx(), referenceId, get_TrxName());<NEW_LINE>inout.setC_Order_ID(order.getC_Ord...
setC_Activity_ID(originalIO.getC_Activity_ID());
1,153,794
public // FIXME. embedded??<NEW_LINE>Object createAdministeredObject(ClassLoader jcl) throws PoolingException {<NEW_LINE>try {<NEW_LINE>if (jcl == null) {<NEW_LINE>// use context class loader<NEW_LINE>jcl = (ClassLoader) AccessController.doPrivileged(new PrivilegedAction() {<NEW_LINE><NEW_LINE>public Object run() {<NE...
Level.SEVERE, "rardeployment.assoc_failed", ex);
1,713,267
private void addWaypoint(@Nullable GPXFile gpxFile, @NonNull MapActivity mapActivity) {<NEW_LINE>LatLon latLon = mapActivity.getMapView().getCurrentRotatedTileBox().getCenterLatLon();<NEW_LINE>boolean usePredefinedWaypoint = Boolean.parseBoolean(getParams().get(KEY_USE_PREDEFINED_WPT_APPEARANCE));<NEW_LINE>if (usePrede...
.time = System.currentTimeMillis();
127,320
private void createOrReplaceViewQuery(List<DBEPersistAction> actions, MySQLView view) {<NEW_LINE>StringBuilder decl = new StringBuilder(200);<NEW_LINE>final <MASK><NEW_LINE>String viewDDL = view.getAdditionalInfo().getDefinition();<NEW_LINE>if (viewDDL == null) {<NEW_LINE>viewDDL = "";<NEW_LINE>}<NEW_LINE>if (!view.isP...
String lineSeparator = GeneralUtils.getDefaultLineSeparator();
1,672,892
private static BlockStatement generateCopyRecordToVectorBatchBody(IntInnerType[] types) {<NEW_LINE>int size = types.length;<NEW_LINE>ArrayList<Statement> statements = new ArrayList<>(size);<NEW_LINE>for (int varIndex = 0; varIndex < size; varIndex++) {<NEW_LINE>IntInnerType intPair = types[varIndex];<NEW_LINE>int colum...
parameter(type.getFieldVector());
1,262,735
public void save(@NonNull final SecurPharmProduct product) {<NEW_LINE>I_M_Securpharm_Productdata_Result record = null;<NEW_LINE>if (product.getId() != null) {<NEW_LINE>record = load(product.getId(), I_M_Securpharm_Productdata_Result.class);<NEW_LINE>}<NEW_LINE>if (record == null) {<NEW_LINE>record = newInstance(I_M_Sec...
productDetails.getProductCode() : null);
573,199
final GetComplianceSummaryResult executeGetComplianceSummary(GetComplianceSummaryRequest getComplianceSummaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getComplianceSummaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
false), new GetComplianceSummaryResultJsonUnmarshaller());
700,028
protected Method rewriteMethod(final File classFile) throws InvocationTargetException {<NEW_LINE>Method m = null;<NEW_LINE>// now make a class out of the stream<NEW_LINE>try {<NEW_LINE>final SoftReference<Method> ref = templateMethodCache.get(classFile);<NEW_LINE>if (ref != null) {<NEW_LINE>m = ref.get();<NEW_LINE>if (...
": " + e.getMessage());
359,411
public static void main(String... args) {<NEW_LINE>ArgParser parser = new ArgParser(args);<NEW_LINE>LibUtilities.getInstance().bind();<NEW_LINE>if (parser.intercept()) {<NEW_LINE>System.exit(parser.getExitCode());<NEW_LINE>}<NEW_LINE>SingleInstanceChecker.stealWebsocket = parser.hasFlag(ArgValue.STEAL);<NEW_LINE>setupF...
getInstance().certGen(false);
272,597
public void onBindViewHolder(final BasicMessageVH holder, int position) {<NEW_LINE>MessageItem messageItem = getMessageItem(position);<NEW_LINE>if (messageItem == null) {<NEW_LINE>LogManager.w(LOG_TAG, "onBindViewHolder Null message item. Position: " + position);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// setup message un...
.messageId = messageItem.getUniqueId();
637,496
public void removeOwner(CommandContext args, Actor sender) throws CommandException {<NEW_LINE>warnAboutSaveFailures(sender);<NEW_LINE>// Get the world<NEW_LINE>World world = checkWorld(args, sender, 'w');<NEW_LINE>String <MASK><NEW_LINE>RegionManager manager = checkRegionManager(world);<NEW_LINE>ProtectedRegion region ...
id = args.getString(0);
485,603
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int result = controller.rollDice(outcome, source, game, 6);<NEW_LINE>Player player = game.getPlayer(getTargetPointer().ge...
remove(player.getId());
497,104
public static void verifyOptionsEqualsHashcode(ParserOptions options1, ParserOptions options2, ParserOptions options3, ParserOptions options4) {<NEW_LINE>// Objects should be different<NEW_LINE>Assert.assertNotSame(options1, options2);<NEW_LINE><MASK><NEW_LINE>Assert.assertNotSame(options1, options3);<NEW_LINE>Assert.a...
Assert.assertNotSame(options1, options2);
951,544
protected static void consume_rg(GraphicsState graphicState, Stack stack, Library library) {<NEW_LINE>if (stack.size() >= 3) {<NEW_LINE>float b = ((Number) stack.pop()).floatValue();<NEW_LINE>float gg = ((Number) stack.pop()).floatValue();<NEW_LINE>float r = ((Number) stack.<MASK><NEW_LINE>b = Math.max(0.0f, Math.min(1...
pop()).floatValue();
270,396
private void fillSegmentInfo(SegmentReader segmentReader, boolean search, Map<String, Segment> segments) {<NEW_LINE>SegmentCommitInfo info = segmentReader.getSegmentInfo();<NEW_LINE>assert segments.containsKey(info.info.name) == false;<NEW_LINE>Segment segment = new Segment(info.info.name);<NEW_LINE>segment.search = se...
.docCount = segmentReader.numDocs();
1,387,158
public <T> T deserialze(DefaultJSONParser parser, Type type, Object fieldName) {<NEW_LINE>try {<NEW_LINE>Object value;<NEW_LINE>final JSONLexer lexer = parser.lexer;<NEW_LINE>final int token = lexer.token();<NEW_LINE>if (token == JSONToken.LITERAL_INT) {<NEW_LINE>int intValue = lexer.intValue();<NEW_LINE>lexer.nextToke...
lexer.nextToken(JSONToken.COMMA);
674,018
public IHUQueryBuilder createHUsAvailableToIssueQuery(@NonNull final I_PP_Order_BOMLine ppOrderBomLine) {<NEW_LINE>final WarehouseId warehouseId = WarehouseId.ofRepoId(ppOrderBomLine.getM_Warehouse_ID());<NEW_LINE>final Set<WarehouseId> issueFromWarehouseIds = warehouseDAO.<MASK><NEW_LINE>final AttributeSetInstanceId e...
getWarehouseIdsOfSameGroup(warehouseId, WarehouseGroupAssignmentType.MANUFACTURING);
1,120,234
public Response intercept(@NonNull Chain chain) throws IOException {<NEW_LINE>Request request = chain.request();<NEW_LINE>byte[] messageBytes;<NEW_LINE>String apiKeyData;<NEW_LINE>byte[] apiSecret;<NEW_LINE>try {<NEW_LINE>JSONObject params = getParamsFromRequest(request);<NEW_LINE>if ("BCH2BTC".equalsIgnoreCase(params....
, messageBytes)).build();
477,822
private void completeTaskInstance(WorkflowContext.ActionContext actionContext) {<NEW_LINE>WorkflowTaskEntity taskEntity = actionContext.getTaskEntity();<NEW_LINE>TaskStatus taskStatus = toTaskState(actionContext.getAction());<NEW_LINE>taskEntity.setStatus(taskStatus.name());<NEW_LINE>taskEntity.setOperator(actionContex...
.setEndTime(new Date());
488,323
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>add_filter_result result = new add_filter_result();<NEW_LINE>if (e instanceof rpc_management_exception) {<NEW_LINE><MASK><NEW_LINE>result.setExIsSet(...
result.ex = (rpc_management_exception) e;
1,738,798
private void processCompleteSingleStep(final long threadId, final BigInteger resolvedAddress) {<NEW_LINE>final BigInteger lastIndirectCallAddress = lastHits.get(threadId);<NEW_LINE>if (lastIndirectCallAddress == null) {<NEW_LINE>// In rare cases we complete a single step without hitting a breakpoint<NEW_LINE>// first.<...
resolveFunction(new Address(resolvedAddress));
500,183
public static void main(String[] args) throws SQLException {<NEW_LINE>// For more connection related properties. Refer to<NEW_LINE>// the OracleConnection interface.<NEW_LINE>Properties properties = new Properties();<NEW_LINE>// Connection property to enable IAM token authentication.<NEW_LINE>// properties.put(OracleCo...
"Driver Version: " + dbmd.getDriverVersion());
722,008
private List<JspCompletionItem> files(int offset, FileObject folder, String prefix, JspSyntaxSupport sup) {<NEW_LINE>ArrayList<JspCompletionItem> res = new ArrayList<JspCompletionItem>();<NEW_LINE>TreeMap<String, JspCompletionItem> resFolders = new TreeMap<String, JspCompletionItem>();<NEW_LINE>TreeMap<String, JspCompl...
addAll(resFiles.values());
1,155,458
public <T> GeoResults<T> geoNear(NearQuery near, Class<?> domainType, String collectionName, Class<T> returnType) {<NEW_LINE>if (near == null) {<NEW_LINE>throw new InvalidDataAccessApiUsageException("NearQuery must not be null!");<NEW_LINE>}<NEW_LINE>if (domainType == null) {<NEW_LINE>throw new InvalidDataAccessApiUsag...
result = new ArrayList<>();
1,773,629
private void processColors() {<NEW_LINE>try {<NEW_LINE>Matcher matcher = COLOR_PATTERN.matcher(message);<NEW_LINE>boolean result = matcher.find();<NEW_LINE>if (result) {<NEW_LINE>StringBuffer sb = new <MASK><NEW_LINE>do {<NEW_LINE>int count = matcher.groupCount();<NEW_LINE>for (int i = 1; i < count && matcher.group(i) ...
StringBuffer(message.length());
253,688
public OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException {<NEW_LINE>getPrev().ifPresent(x -> x.syncPull(ctx, nRecords));<NEW_LINE>init();<NEW_LINE>return new OResultSet() {<NEW_LINE><NEW_LINE>private int currentElement = 0;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean hasNext() {<N...
System.nanoTime() - begin);
308,407
public static StatementExecutorResponse validate(final ConfiguredStatement<CreateConnector> statement, final SessionProperties sessionProperties, final KsqlExecutionContext executionContext, final ServiceContext serviceContext) {<NEW_LINE>final CreateConnector createConnector = statement.getStatement();<NEW_LINE>final ...
ConnectClient client = serviceContext.getConnectClient();
1,480,590
Span generateSpan(SpanData spanData) {<NEW_LINE>Endpoint endpoint = getEndpoint(spanData);<NEW_LINE>long startTimestamp = toEpochMicros(spanData.getStartEpochNanos());<NEW_LINE>long endTimestamp = toEpochMicros(spanData.getEndEpochNanos());<NEW_LINE>Span.Builder spanBuilder = Span.newBuilder().traceId(spanData.getTrace...
.getEvents().size();
433,657
public void onBindItemViewHolder(RecentPhotoViewHolder viewHolder, @NonNull Cursor cursor) {<NEW_LINE>viewHolder.imageView.setImageDrawable(null);<NEW_LINE>long rowId = cursor.getLong(cursor.getColumnIndexOrThrow(MediaStore<MASK><NEW_LINE>long dateTaken = cursor.getLong(cursor.getColumnIndexOrThrow(MediaStore.Images.Im...
.Images.ImageColumns._ID));
1,834,837
private void showStatsLegend(GraphicsContext gc) {<NEW_LINE>JITStats stats = mainUI.getJITDataModel().getJITStats();<NEW_LINE>StringBuilder compiledStatsBuilder = new StringBuilder();<NEW_LINE>compiledStatsBuilder.append("Total Compilations: ").append(stats.getTotalCompiledMethods());<NEW_LINE>compiledStatsBuilder.appe...
()).append(S_CLOSE_PARENTHESES);
1,579,210
protected BaseClient loadClient(Connection conn, String clientId) {<NEW_LINE>String methodName = "findClient";<NEW_LINE>_log.entering(CLASS, methodName, new Object[] { clientId });<NEW_LINE>BaseClient result = null;<NEW_LINE>ResultSet queryResults = null;<NEW_LINE>PreparedStatement st = null;<NEW_LINE>try {<NEW_LINE>St...
+ " = ? AND " + TableConstants.COL_CC2_CLIENTID + " = ?";
1,811,684
public void exportElement(JRPdfExporterContext exporterContext, JRGenericPrintElement element) {<NEW_LINE>JRPrintText labelPrintText = (JRPrintText) element.getParameterValue(IconLabelElement.PARAMETER_LABEL_TEXT_ELEMENT);<NEW_LINE>if (// FIXMEINPUT deal with xml serialization<NEW_LINE>labelPrintText == null) {<NEW_LIN...
(JRPdfExporter) exporterContext.getExporterRef();
114,553
public static String[] usage() {<NEW_LINE>return new String[] { "less - file pager", "Usage: less [OPTIONS] [FILES]", " -? --help Show help", " -e --quit-at-eof Exit on second EOF", " -E --QUIT-AT-EOF Exit on EOF", " -F --quit-if-one-screen Exit if entire file fits o...
" --no-init Disable terminal initialization", " --no-keypad Disable keypad handling", " --ignorercfiles Don't look at the system's lessrc nor at the user's lessrc.", " -H --historylog=name Log search strings to file, so they can be retrieved in later sessions...
8,953
private static void fillDocumentsTableArrays() {<NEW_LINE>if (documentsTableID == null) {<NEW_LINE>String sql = "SELECT t.AD_Table_ID, t.TableName " + "FROM AD_Table t, AD_Column c " + "WHERE t.AD_Table_ID=c.AD_Table_ID AND " + "c.ColumnName='Posted' AND " + "IsView='N' " + "ORDER BY t.AD_Table_ID";<NEW_LINE>ArrayList<...
throw new DBException(e, sql);
1,801,341
// ---------------------------------------------------------------- print<NEW_LINE>public void printBeans(final int width) {<NEW_LINE>final Print print = new Print();<NEW_LINE>print.line("Beans", width);<NEW_LINE>final List<BeanDefinition> beanDefinitionList = new ArrayList<>();<NEW_LINE>final <MASK><NEW_LINE>final Str...
String appName = appNameSupplier.get();
202,285
public void handleMessage(int group, byte cmd1, Msg msg, DeviceFeature f, String fromPort) {<NEW_LINE>InsteonDevice dev = f.getDevice();<NEW_LINE>if (!msg.isExtended()) {<NEW_LINE>logger.trace("{} device {} ignoring non-extended msg {}", nm(), dev.getAddress(), msg);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>...
warn("unknown cmd2 = {} in info reply message {}", cmd2, msg);
6,032
private void parseInternal(DefaultCommandLine cl, String[] args) {<NEW_LINE>cl.setRawArguments(args);<NEW_LINE>String lastOptionName = null;<NEW_LINE>for (String arg : args) {<NEW_LINE>if (arg == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (StringUtils.isNotEmpty(trimmed)) {<NEW_LINE>if (trimmed.c...
String trimmed = arg.trim();
614,818
public void onChatMessage(ChatMessage chatMessage) {<NEW_LINE>// Start sending old messages right after the welcome message, as that is most reliable source<NEW_LINE>// of information that chat history was reset<NEW_LINE>ChatMessageType chatMessageType = chatMessage.getType();<NEW_LINE>if (chatMessageType == ChatMessag...
removeTags(chatMessage.getName());
4,603
public void onResult(SQLQueryResult<Map<String, String>> result) {<NEW_LINE>// SQLQueryResult<Map<String, String>> queryRestl=new SQLQueryResult<Map<String, String>>(this.result,!failed, dataNode,errorMsg);<NEW_LINE>if (result.isSuccess()) {<NEW_LINE>LOGGER.debug("onResult success on xa rollback {},{}", xaId, participa...
i].txState = TxState.TX_ROLLBACKED_STATE;
198,824
private void registerUnlockReceiver() {<NEW_LINE>try {<NEW_LINE>IntentFilter intentFilter = new IntentFilter();<NEW_LINE>intentFilter.addAction(Intent.ACTION_USER_UNLOCKED);<NEW_LINE>ActivityManagerService.registerReceiver("android", null, new IIntentReceiver.Stub() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void p...
e(TAG, "finish receiver", e);
1,244,745
public void run() {<NEW_LINE>logger.info("Starting server.");<NEW_LINE>InetAddress localAddr = MaryProperties.needInetAddress("socket.addr");<NEW_LINE>int localPort = MaryProperties.needInteger("socket.port");<NEW_LINE>HttpParams params = new BasicHttpParams();<NEW_LINE>// 0 means no timeout, any positive value means t...
("*", new FileRequestHandler());
1,092,859
public Request<GetQueueAttributesRequest> marshall(GetQueueAttributesRequest getQueueAttributesRequest) {<NEW_LINE>if (getQueueAttributesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetQueueAttributesRequest)");<NEW_LINE>}<NEW_LINE>Request<GetQueueAttributesRequest> r...
request.addParameter("Action", "GetQueueAttributes");
94,345
public Set<DataObject> instantiate(TemplateWizard wizard) throws IOException {<NEW_LINE>FileObject targetFolder = Templates.getTargetFolder(wizard);<NEW_LINE>String targetName = Templates.getTargetName(wizard);<NEW_LINE>DataFolder dataFolder = DataFolder.findFolder(targetFolder);<NEW_LINE>FileObject template = Template...
HashMap<String, Object>();
1,277,557
public void lookupASN(final InetAddress address, final NetworkAdminASNListener listener) {<NEW_LINE>synchronized (async_asn_history) {<NEW_LINE>NetworkAdminASN existing = async_asn_history.get(address);<NEW_LINE>if (existing != null) {<NEW_LINE>listener.success(existing);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>int queue_size =...
existing = async_asn_history.get(address);
469,839
public void updateConfig(final String config) throws IOException {<NEW_LINE>if (config == null) {<NEW_LINE>throw new StorageAdapterException("Remote adapter needs a config.");<NEW_LINE>}<NEW_LINE>this.updateNetworkConfig(config);<NEW_LINE>final JsonNode configsJson = JMapper.MAP.readTree(config);<NEW_LINE>if (configsJs...
getValue().asText());
337,920
public CacheData addCacheDataIfAbsent(String dataId, String group, String tenant) throws NacosException {<NEW_LINE>CacheData cache = getCache(dataId, group, tenant);<NEW_LINE>if (null != cache) {<NEW_LINE>return cache;<NEW_LINE>}<NEW_LINE>String key = GroupKey.getKeyTenant(dataId, group, tenant);<NEW_LINE>synchronized ...
copy.put(key, cache);
1,320,563
protected JFreeChart createHighLowChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createHighLowChart(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(((JRHighLowPlot) getPlot()).getTime...
getDataset(), isShowLegend());
1,223,681
// if the previous header is not present yet, we need to go deeper<NEW_LINE>@VisibleForTesting<NEW_LINE>protected CompletableFuture<Void> possiblyMoreBackwardSteps(final BlockHeader blockHeader) {<NEW_LINE>CompletableFuture<Void> completableFuture = new CompletableFuture<>();<NEW_LINE>if (context.getProtocolContext().g...
getHash().toHexString());